|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CachingHeaders
Represents the different types of caching headers used by Confluence. Applies the "Cache-Control" and "Expires" headers to a response as specified in the HTTP 1.1 specification (RFC 2616).
This implementation intentionally does not specify the Pragma header, which is sometimes mistakenly used by servers to try to control client caching. Pragma is actually a request header, so shouldn't be generated by this code.
Field Summary | |
---|---|
static long |
LONG_TERM_EXPIRY_MILLIS
|
static long |
LONG_TERM_EXPIRY_SECONDS
|
static CachingHeaders |
PREVENT_CACHING
Prevents all client and proxy caching. |
static CachingHeaders |
PREVENT_CACHING_IE_SSL
Prevent caching in a way that is compatible with downloading attachments over SSL in Internet Explorer. |
static CachingHeaders |
PRIVATE_LONG_TERM
Indicates to proxies and clients that this is private data. |
static CachingHeaders |
PRIVATE_SHORT_TERM
Indicates to proxies and clients that this is private data. |
static CachingHeaders |
PUBLIC_LONG_TERM
Indicates to proxies and clients that this is public data. |
static CachingHeaders |
PUBLIC_SHORT_TERM
Indicates to proxies and clients that this is public data. |
static long |
SHORT_TERM_EXPIRY_MILLIS
|
static long |
SHORT_TERM_EXPIRY_SECONDS
|
Method Summary | |
---|---|
void |
apply(javax.servlet.http.HttpServletResponse response)
Applies the caching headers to the response. |
Field Detail |
---|
static final long LONG_TERM_EXPIRY_SECONDS
static final long LONG_TERM_EXPIRY_MILLIS
static final long SHORT_TERM_EXPIRY_SECONDS
static final long SHORT_TERM_EXPIRY_MILLIS
static final CachingHeaders PREVENT_CACHING
static final CachingHeaders PREVENT_CACHING_IE_SSL
AttachmentCachingStrategies.InternetExplorerSslCachingStrategy
static final CachingHeaders PRIVATE_SHORT_TERM
static final CachingHeaders PRIVATE_LONG_TERM
static final CachingHeaders PUBLIC_SHORT_TERM
static final CachingHeaders PUBLIC_LONG_TERM
Method Detail |
---|
void apply(javax.servlet.http.HttpServletResponse response)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |