Class: RequestCacheControl

Configures the cache control directives for an http:Request.

Methods

buildCacheControlDirectives

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

Fields

  • 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

  • onlyIfCached boolean(default false)
  • Sets the only-if-cached directive

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

  • maxStale decimal(default -1)
  • Sets the max-stale directive

  • minFresh decimal(default -1)
  • Sets the min-fresh directive

buildCacheControlDirectives

function buildCacheControlDirectives() returns string
Isolated Function

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

Return Type

(string)

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