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)

https://github.com/realityforge/gwt-cache-filter

HTH



On Tue, Mar 28, 2017 at 8:23 PM, abdul <[email protected]> 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 [email protected].
> To post to this group, send email to [email protected].
> 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

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to