Object - http : RequestCacheControl

Configures cache control directives for a Request.

Methods

Fields

  • noCache boolean false
  • Sets the no-cache directive

  • noStore boolean false
  • Sets the no-store directive

  • noTransform boolean false
  • Sets the no-transform directive

  • onlyIfCached boolean false
  • Sets the only-if-cached directive

  • maxAge int -1
  • Sets the max-age directive

  • maxStale int -1
  • Sets the max-stale directive

  • minFresh int -1
  • Sets the min-fresh directive

buildCacheControlDirectives

()

returns string

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

  • Return Type

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