public interface

CachingHeaders

com.atlassian.confluence.web.filter.CachingHeaders

Class Overview

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.

Summary

Constants
long LONG_TERM_EXPIRY_MILLIS
long LONG_TERM_EXPIRY_SECONDS
long SHORT_TERM_EXPIRY_MILLIS
long SHORT_TERM_EXPIRY_SECONDS
Fields
public static final CachingHeaders PREVENT_CACHING Prevents all client and proxy caching.
public static final CachingHeaders PREVENT_CACHING_IE_SSL Prevent caching in a way that is compatible with downloading attachments over SSL in Internet Explorer.
public static final CachingHeaders PRIVATE_LONG_TERM Indicates to proxies and clients that this is private data.
public static final CachingHeaders PRIVATE_SHORT_TERM Indicates to proxies and clients that this is private data.
public static final CachingHeaders PUBLIC_LONG_TERM Indicates to proxies and clients that this is public data.
public static final CachingHeaders PUBLIC_SHORT_TERM Indicates to proxies and clients that this is public data.
Public Methods
void apply(HttpServletResponse response)
Applies the caching headers to the response.

Constants

public static final long LONG_TERM_EXPIRY_MILLIS

Constant Value: 315360000000 (0x000000496cebb800)

public static final long LONG_TERM_EXPIRY_SECONDS

Constant Value: 315360000 (0x0000000012cc0300)

public static final long SHORT_TERM_EXPIRY_MILLIS

Constant Value: 600000 (0x00000000000927c0)

public static final long SHORT_TERM_EXPIRY_SECONDS

Constant Value: 600 (0x0000000000000258)

Fields

public static final CachingHeaders PREVENT_CACHING

Prevents all client and proxy caching.

public static final CachingHeaders PREVENT_CACHING_IE_SSL

Prevent caching in a way that is compatible with downloading attachments over SSL in Internet Explorer. See CONF-16168 for more information.

See Also
  • AttachmentCachingStrategies.InternetExplorerSslCachingStrategy

public static final CachingHeaders PRIVATE_LONG_TERM

Indicates to proxies and clients that this is private data. Caches for a long period of time, e.g. 10 years. Prevents caching by HTTP/1.0 proxies and clients that don't have the notion of private caching.

public static final CachingHeaders PRIVATE_SHORT_TERM

Indicates to proxies and clients that this is private data. Caches for a short period of time, e.g. 10 minutes. Prevents caching by HTTP/1.0 proxies and clients that don't have the notion of private caching.

public static final CachingHeaders PUBLIC_LONG_TERM

Indicates to proxies and clients that this is public data. Caches for a long period of time, e.g. 10 years.

public static final CachingHeaders PUBLIC_SHORT_TERM

Indicates to proxies and clients that this is public data. Caches for a short period of time, e.g. 10 minutes.

Public Methods

public void apply (HttpServletResponse response)

Applies the caching headers to the response.