>
> Whenever we deploy the new builds on the server,
> we have to tell our customers to clean their browser cache. Otherwise
> customer's observe the unpredictable behaviors.
>

In general, you cannot ask your customers to clean their cache. So, its best
to set appropriate http headers that prevent such a problem. Take a look at
all files in your war and classify them into a) Cache Always, b) Never
Cache  or c) Don't know.

If you look at GWT generated files, they end in .cache.xx or .nocache.xx.
The .cache. are safe to cache forever - GWT guarantees that it will generate
a new version of the file if it ever changes. The .nocache.js file, on the
other hand, should never be cached. You should modify your web-server cache
settings to put appropriate cache and max-age http headers to ensure this.

Any file that doesn't end in .cache.xx or .nocache.xx is non-deterministic.
You should a) try to use ClientBundle to minimize such files and b) Set a
low time-to-live http header (less than a day), so that the browser always
asks the server if there is a new file.

--Sri



On 26 April 2010 19:05, jchittoda <[email protected]> wrote:

> Hi,
>
> We are creating GWT based application. We used to deploy the new
> builds on the server. Whenever we deploy the new builds on the server,
> we have to tell our customers to clean their browser cache. Otherwise
> customer's observe the unpredictable behaviors.
>
> So please do let me know is there any feature/way to notify to the
> client browser to clean/reload the cache.
>
> Thanks & Regards,
> Jitendra Chittoda
>
> --
> 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.
>
>

-- 
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.

Reply via email to