Wicket - set the expiration date of your own Wicket resources

How to set an expiration date for your own Wicket resources, for example wicket-ajax.js

I have a cache problem due to porting from an older version of Wicket to a newer one, but the cache is not updated with the new wicket-ajax.js resource.

+4
source share
1 answer

You can do this using the Wicket IHeaderResponseDecorator or a simple servlet filter that is configured to run before WicketFilter and sets the cache headers for all the resources you need.

+3
source

Source: https://habr.com/ru/post/1368902/


All Articles