com.atlassian.confluence.web.filter
Class PreventCachingStrategy
java.lang.Object
com.atlassian.confluence.web.filter.PreventCachingStrategy
- All Implemented Interfaces:
- com.atlassian.core.filters.cache.CachingStrategy
public class PreventCachingStrategy
- extends java.lang.Object
- implements com.atlassian.core.filters.cache.CachingStrategy
Caching strategy which prevents all client and proxy caching for certain request
URLs. Headers which prevent client and proxy caching will be applied to requests
with ".vm", ".action" or "/display/" in the URI.
The exceptions to this rule are requests for actions known to provide their own
caching headers. These will not have the cache prevention headers applied. This
currently includes just the legacy CSS action ("main-action.action").
- See Also:
ConfluenceCachingFilter
Method Summary |
boolean |
matches(javax.servlet.http.HttpServletRequest request)
|
void |
setCachingHeaders(javax.servlet.http.HttpServletResponse response)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreventCachingStrategy
public PreventCachingStrategy()
matches
public boolean matches(javax.servlet.http.HttpServletRequest request)
- Specified by:
matches
in interface com.atlassian.core.filters.cache.CachingStrategy
setCachingHeaders
public void setCachingHeaders(javax.servlet.http.HttpServletResponse response)
- Specified by:
setCachingHeaders
in interface com.atlassian.core.filters.cache.CachingStrategy
Copyright © 2003-2010 Atlassian. All Rights Reserved.