public class

CachePolicies

extends Object
java.lang.Object
   ↳ com.atlassian.bitbucket.rest.util.CachePolicies

Class Overview

DESCRIPTION OF CACHE CONTROL PARAMETERS private ------- Indicates that all or part of the response message is intended for a single user and MUST NOT be cached by a shared cache. This allows an origin server to state that the specified parts of the response are intended for only one user and are not a valid response for requests by other users. A private (non-shared) cache MAY cache the response. no-cache -------- If the no-cache directive does not specify a field-name, then a cache MUST NOT use the response to satisfy a subsequent request without successful re-validation with the origin server. This allows an origin server to prevent caching even by caches that have been configured to return stale responses to client requests. If the no-cache directive does specify one or more field-names, then a cache MAY use the response to satisfy a subsequent request, subject to any other restrictions on caching. However, the specified field-name(s) MUST NOT be sent in the response to a subsequent request without successful re-validation with the origin server. This allows an origin server to prevent the re-use of certain header fields in a response, while still allowing caching of the rest of the response. max-age ------- Indicates that the client is willing to accept a response whose age is no greater than the specified time in seconds. Unless max- stale directive is also included, the client is not willing to accept a stale response.

Summary

Public Constructors
CachePolicies()
Public Methods
static CacheControl cacheForAMonth()
static CacheControl getCacheControlForRange(String untilId, String sinceId)
static CacheControl getCacheControlObjectId(String objectId)
static CacheControl noCache()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CachePolicies ()

Public Methods

public static CacheControl cacheForAMonth ()

public static CacheControl getCacheControlForRange (String untilId, String sinceId)

public static CacheControl getCacheControlObjectId (String objectId)

public static CacheControl noCache ()