VIVO-87 First attempt at a caching filter.

Appears to work with Firefox cache and Chrome cache, except for language-dependent stuff.

Is that because it isn't configured correctly, or is it because Firefox and Chrome aren't attempting to keep more than one version of a page in their caches? Even if they do see a "Vary: Accept-Language" header?
This commit is contained in:
j2blake 2013-05-14 16:37:29 -04:00
parent ddf101d6ae
commit 6123f41d95
5 changed files with 396 additions and 13 deletions

View file

@ -88,6 +88,17 @@
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- If language support is enabled, this must not precede the LocaleSelectionFilter -->
<filter>
<description>Recognize conditional requests, and generate Cache-Control headers.</description>
<filter-name>Caching Response filter</filter-name>
<filter-class>edu.cornell.mannlib.vitro.webapp.filters.CachingResponseFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Caching Response filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>JSession Strip Filter</filter-name>
<filter-class>edu.cornell.mannlib.vitro.webapp.filters.JSessionStripFilter</filter-class>