Object -
http
:
ResponseCacheControl
Configures cache control directives for an http:Response.
Methods
Builds the cache control directives string from the current http:ResponseCacheControl configurations.
Fields
- mustRevalidate boolean (default false)
-
Sets the
must-revalidatedirective
- noCache boolean (default false)
-
Sets the
no-cachedirective
- noStore boolean (default false)
-
Sets the
no-storedirective
- noTransform boolean (default false)
-
Sets the
no-transformdirective
- isPrivate boolean (default false)
-
Sets the
privateandpublicdirectives
- proxyRevalidate boolean (default false)
-
Sets the
proxy-revalidatedirective
- maxAge int (default -1)
-
Sets the
max-agedirective
- sMaxAge int (default -1)
-
Sets the
s-maxagedirective
- noCacheFields string[] (default [])
-
Optional fields for the
no-cachedirective. Before sending a listed field in a response, it must be validated with the origin server.
- privateFields string[] (default [])
-
Optional fields for the
privatedirective. A cache can omit the fields specified and store the rest of the response.