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