How to force-reload the client side?

52 views
Skip to first unread message

georg

unread,
Sep 1, 2014, 4:36:33 AM9/1/14
to ajax...@googlegroups.com
Hello,

everytime you do some updates on the "clientside" java code, the users have to press "CTRL+F5" (to clear the cache) to actually see the effects.
Is there any possible way, to force the "full reload" for all users in chatroom or at least to force a full client update on next visit?

Thanks

Frug

unread,
Sep 4, 2014, 12:35:29 PM9/4/14
to ajax...@googlegroups.com
Most browsers will reload a file that has a querystring on the end of it, even if the querystring does nothing. So in your template file where the script tag for chat.js is located, change it to chat.js?v=1234 and browsers should consider that a different file. Then just change the numbers every time you update.
Reply all
Reply to author
Forward
0 new messages