Re:Webpack 4 Beta released
by moogly on Friday January 26, 2018 @06:46AM
(#16238433)
Did you also have to tell your users to press Ctrl+F5 to get the updated assets?
[ Parent
| on HN ]
Re:Webpack 4 Beta released
by y0ghur7_xxx on Friday January 26, 2018 @09:36AM
(#16239439)
> Did you also have to tell your users to press Ctrl+F5 to get the updated assets?
Actually I did!
What I do now is this: there is a websocket connection always open with the connected browsers, and when there are some assets that reallyreallyreally should be refreshed, I send a command though the websocket and the browser (after a few client side checks, like making sure the user is not in the middle of filling out a form) executes ´window.location.reload(true);´
What is there a better way??!
Assuming your are not just joking, the keyword to look for is "cache busting"