wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Dudgeon <tdudgeon...@gmail.com>
Subject Disable cache for AbstractResource
Date Tue, 19 Mar 2019 09:29:54 GMT
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message