-
Enhancement
-
Resolution: Unresolved
-
Major
-
None
-
2.15.5 GA
-
False
-
-
False
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
-
Current behaviour
The configuration example of the content cache policy does not work. This is the configuration suggested in the doc:
{
"name": "apicast.policy.content_caching",
"version": "builtin",
"configuration": {
"rules": [
{
"cache": true,
"header": "X-Cache-Status-POLICY",
"condition": {
"combine_op": "and",
"operations": [
{
"left": "{{method}}",
"left_type": "liquid",
"op": "==",
"right": "GET"
}
]
}
}
]
}
}
this pattern:
{{method}}
is not working. When used, the content cache is not taking any effect and hence no x-cache-control-status is being returned.
In order to make work that example the pattern to be used is:
{{request_method}}
Expected behaviour
Replace method with request_method in the configuration sample given.
Additional information:
This issue has been tested in latest 3scale version (2.15.5)
Link to the documentation section to be fixed: