CacheConfiguration interface
Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object.
Properties
cache |
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 |
dynamic |
Whether to use dynamic compression for cached content |
query |
query parameters to include or exclude (comma separated). |
query |
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