| 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
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
final
void
|
wait()
|
|
Public Constructors
Public Methods
public
static
CacheControl
cacheForAMonth
()
public
static
CacheControl
getCacheControlForRange
(String untilId, String sinceId)
public
static
CacheControl
getCacheControlObjectId
(String objectId)
public
static
CacheControl
noCache
()