Browser Cache issue while switching to new version of GWT Application

72 views
Skip to first unread message

ram.pam...@gmail.com

unread,
Oct 21, 2014, 1:40:27 AM10/21/14
to google-we...@googlegroups.com
Hi,
I am using Gwt-2.5.1,


When I deploy a new build of our GWT application the user's browser doesn't always run the latest version of the code. The user has to clear their browser cache to get the updated app. Is there a way to force the browser to recognize the new version?


Please suggest us, how to avoid this issue.

Thanks 
Raamu

Jens

unread,
Oct 21, 2014, 4:22:52 AM10/21/14
to google-we...@googlegroups.com
Is there a way to force the browser to recognize the new version?

Yeah tell your server to set correct caching HTTP headers for any file that is of the form *.nocache.*

In your case your <modulename>.nocache.js file is probably cached by the browser but as the file name suggests it should never be cached.

-- J. 

Thomas Broyer

unread,
Oct 21, 2014, 5:04:29 AM10/21/14
to google-we...@googlegroups.com

ram.pam...@gmail.com

unread,
Oct 21, 2014, 7:31:45 AM10/21/14
to google-we...@googlegroups.com
Hi Jens,
Thanks for your quick reply.
Please kindly give in detail how you fixed this issue.

Jens

unread,
Oct 21, 2014, 7:39:54 AM10/21/14
to google-we...@googlegroups.com
Hi Jens,
Thanks for your quick reply.
Please kindly give in detail how you fixed this issue.

Thomas already gave a link that has some instructions for Apache. If you have a different web server, you have to look at its documentation. Alternatively there is also a library that has a servlet filter for your java server if you serve your static files directly from the java server. A google search will find that library.

-- J. 
Reply all
Reply to author
Forward
0 new messages