GWT uses perfect hashing for javascript files and thus some of the files can be cached forever (because if the content changes the filename changes). Some files can never be cached (i.e. the *.nocache.* files).
To make sure the appropriate cchine headers are set you can use the following library (it deploys fine under payara)
HTH
On Tue, Mar 28, 2017 at 8:23 PM, abdul <mohammedsameen.cse@gmail.com> wrote:
--Hi,Developed application using GWT which contains lot of static files(`javascript,css,images`) which i want to cache for `30` days. I read lot of blogs but didn't get any clue.*- How to cache static files?- What are the possible option to achieve caching (do i need to configure in server or GWT application, here i am using glassfish/payara server for deployment)*Any idea?
You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit .
For more options, visit https://groups.google.com/d/optout .
Cheers,
Peter Donald
Peter Donald
You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment