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-revalidate directive

  • noCache boolean (default false)
  • Sets the no-cache directive

  • noStore boolean (default false)
  • Sets the no-store directive

  • noTransform boolean (default false)
  • Sets the no-transform directive

  • isPrivate boolean (default false)
  • Sets the private and public directives

  • proxyRevalidate boolean (default false)
  • Sets the proxy-revalidate directive

  • maxAge int (default -1)
  • Sets the max-age directive

  • sMaxAge int (default -1)
  • Sets the s-maxage directive

  • noCacheFields string[] (default [])
  • Optional fields for the no-cache directive. Before sending a listed field in a response, it must be validated with the origin server.

  • privateFields string[] (default [])
  • Optional fields for the private directive. A cache can omit the fields specified and store the rest of the response.

buildCacheControlDirectives

()

returns string

Builds the cache control directives string from the current http:ResponseCacheControl configurations.

  • Return Type

    (string)
  • The cache control directives string to be used in the cache-control header