GWT does the so-called "perfect-cache". Since everything is compiled and the script files is generated by hashing its contents, if one single byte of information is changed the name of the file will change.
The only things that don't follow that rule is the selection script and a few other files (css style). That file cannot be cached, but since they are very small it will not cause too much latency. All files that do perfect cache has a name like *.cache.* and the files that cannot be cached has a name like *.nocache.* This link: http://code.google.com/intl/webtoolkit/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideJavaToJavaScriptCompiler <http://code.google.com/intl/webtoolkit/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideJavaToJavaScriptCompiler>contains information about the perfect cache and tips to deploy and configure your web-server to get a better cache. Your app can have even better cache if you use ClientBundle and CssResource, but this can be a little hard to do if your app don't use they. On Wed, Aug 4, 2010 at 1:19 PM, shahid <[email protected]> wrote: > I have a GWT app deployed onto our client's machines. As an ongoing > development alongside, we have to release new improved versions of the > application fron time to time. Everytime we release a new version we > often run into the problem where the client's browser has cached the > old scripts scriptsand for a while it behaves strangly as the data it > is trying to work with is not quite compatible with it. What is the > best way to overcome this problem. Currently I have to tell the users > to clear their browser's cache for a new release but it would be nice > they don't have to do this. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- André Moraes Analista de Desenvolvimento de Sistemas [email protected] http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
