DEV Community

Discussion on: Create react app version check

 
jonocairns profile image
Jono Cairns • Edited

Nice - thanks for posting that :) Caching files with a SPA is always tough, there are so many layers things can go wrong and debugging is non-trivial. How did you end up informing the user that you essentially needed to block the UI and prompt a reload? Or did you just onError refresh the page so it'd grab the latest?

Thread Thread
 
khorengrig profile image
khorengrig

I am just roughly refreshing all opened tabs (if they are multiple) and they grab latest content, without any side action and SW automatically revalidates it's cache. But would be nice to inform user to do it yourself :D (with a custom prompt).

Thread Thread
 
jonocairns profile image
Jono Cairns

Ah I see. Our application has a voice/video call function so we're unable to refresh randomly, as someone could be in a call :(