Record: HttpCacheConfig
Defines the HTTP response cache configuration. By default the no-cache
directive is setted to the cache-control
header. In addition to that etag
and last-modified
headers are also added for cache validation.
Fields
- mustRevalidate boolean(default true)
- noCache boolean(default false)
- noStore boolean(default false)
- noTransform boolean(default false)
- isPrivate boolean(default false)
- proxyRevalidate boolean(default false)
- maxAge decimal(default 3600)
- sMaxAge decimal(default -1)
- noCacheFields string[ ](default [])
- privateFields string[ ](default [])
- setETag boolean(default true)
- setLastModified boolean(default true)
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. Default value is 3600 seconds
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
Sets the etag
header for the given payload
Sets the current time as the last-modified
header