Getting started Community Training Tutorials Documentation APIs, AI & Tools
- policyRef:
name: http-caching-flex
config:
httpCachingKey: <string> // REQUIRED, default: "#[attributes.requestPath]"
maxCacheEntries: <int> // REQUIRED, default: 10000
ttl: <int> // REQUIRED, default: 600
useHttpCacheHeaders: <bool> // REQUIRED, default: true
invalidationHeader: <string> // OPTIONAL, default: ""
requestExpression: <string> // OPTIONAL, default: "#[attributes.method == 'GET' or attributes.method == 'HEAD']"
responseExpression: <string> // OPTIONAL, default: "#[[200, 203, 204, 206, 300, 301, 404, 405, 410, 414, 501] contains attributes.statusCode]"
distributed: <bool> // REQUIRED, default: false
persistCache: <bool> // REQUIRED, default: false



