Sunday, July 12, 2015

Re: GWT 2.6 Serialize issue when redeploy project and do NOT close the Browser.

Jens,

Yes, the issue is caused by the cache,Thanks; but do you know why I encountered the error 'The Response could not be deserialized' when i refresh my browser after STEP #5, I'm sure it get the new serialization policy after refreshing the browser, and I can fix it by restarting my Glassfish server.



On Friday, July 10, 2015 at 4:18:39 PM UTC+8, Jens wrote:
Most likely you have not configured HTTP caching headers correctly and your browser caches your <modulename>.nocache.js file even tough it should not do so. Only *.cache.* files can be cached, e.g. your <permutation-strongname>.cache.js file.

Your browser must check for newer versions of *.nocache.* files before using a cached version. I forgot the name but there is a project on github that has servlet filters that will set correct headers. Alternatively you could apply the headers on your loadbalancers / reverse proxies in front of your app server.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment