News for hackers. Stuff that matters.
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?
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);´

Re:Webpack 4 Beta released by linkmotif on Friday January 26, 2018 @07:21AM (#16238591)
What is there a better way??!
Re:Webpack 4 Beta released by staz on Friday January 26, 2018 @08:57AM (#16239134)
Assuming your are not just joking, the keyword to look for is "cache busting"
Re:Webpack 4 Beta released by linkmotif on Friday January 26, 2018 @01:35PM (#16241645)
Hehe I was joking. Really enjoying the cache busting functionality in webpack :)