CacheConfigurationResponse

data class CacheConfigurationResponse(val cacheDuration: String? = null, val dynamicCompression: String? = null, val queryParameterStripDirective: String? = null, val queryParameters: String? = null)

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

Constructors

Link copied to clipboard
constructor(cacheDuration: String? = null, dynamicCompression: String? = null, queryParameterStripDirective: String? = null, queryParameters: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val cacheDuration: String? = null

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

Link copied to clipboard

Whether to use dynamic compression for cached content

Link copied to clipboard
val queryParameters: String? = null

query parameters to include or exclude (comma separated).

Link copied to clipboard

Treatment of URL query terms when forming the cache key.