Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-12017

The configuration example of the content cache policy is incorrect

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.15.5 GA
    • Documentation
    • False
    • Hide

      None

      Show
      None
    • 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:

      https://docs.redhat.com/en/documentation/red_hat_3scale_api_management/2.15/html/administering_the_api_gateway/apicast-policies#content-caching_standard-policies

       

              abelgaon@redhat.com Arati Ajit Belgaonkar
              rhn-support-icaldero Ivan Calderon Clemente
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: