CacheConfiguration interface

Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object.

Properties

cacheDuration

The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year

dynamicCompression

Whether to use dynamic compression for cached content

queryParameters

query parameters to include or exclude (comma separated).

queryParameterStripDirective

Treatment of URL query terms when forming the cache key.

Property Details

cacheDuration

The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year

cacheDuration?: string

Property Value

string

dynamicCompression

Whether to use dynamic compression for cached content

dynamicCompression?: string

Property Value

string

queryParameters

query parameters to include or exclude (comma separated).

queryParameters?: string

Property Value

string

queryParameterStripDirective

Treatment of URL query terms when forming the cache key.

queryParameterStripDirective?: string

Property Value

string