Class: ResponseCacheControl
Configures cache control directives for an http:Response
.
Methods
buildCacheControlDirectives | Builds the cache control directives string from the current |
Fields
- mustRevalidate boolean(default false)
- noCache boolean(default false)
- noStore boolean(default false)
- noTransform boolean(default false)
- isPrivate boolean(default false)
- proxyRevalidate boolean(default false)
- maxAge decimal(default -1)
- sMaxAge decimal(default -1)
- noCacheFields string[ ](default [])
- privateFields string[ ](default [])
Sets the must-revalidate
directive
Sets the no-cache
directive
Sets the no-store
directive
Sets the no-transform
directive
Sets the private
and public
directives
Sets the proxy-revalidate
directive
Sets the max-age
directive
Sets the s-maxage
directive
Optional fields for the no-cache
directive. Before sending a listed field in a response, it
must be validated with the origin server.
Optional fields for the private
directive. A cache can omit the fields specified and store
the rest of the response.