I'm struggling with disabling the browser cache when using
org.apache.wicket.request.resource.AbstractResource.
In my subclass I have this:
@Override
protected void configureCache(ResourceResponse data, Attributes
attributes) {
super.configureCache(data, attributes);
data.disableCaching();
}
When when the resource is requested the response headers contain this,
so seems that the caching is not being disabled:
cache-control: private
cache-control: max-age=31536000
content-disposition: attachment; filename="results.json"
date: Tue, 19 Mar 2019 09:15:36 GMT
expires: Wed, 18 Mar 2020 09:15:36 GMT
pragma: cache
Am I going about this the wrong way?
Tim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org