Do you use Jetty and need to change the default setting for browser cache control? Have a look at the init-param
element named cacheControl
in webdefault.xml
.
Here’s the default configuration for the version of Jetty I use. Note the element is commented.
To enable and configure browser cache control, uncomment and edit the param-value
as appropriate. The following example instructs the browser to disable all caching.
For information on Cache-Control
, see RFC 2616, Section 14.9.