Cache responses to successful GET requests

Cache responses to GET requests with a 200 response code for 300 seconds before renewing the cache.

Set up the plugin

Add this section to your declarative configuration file:

_format_version: "3.0"
plugins:
  - name: proxy-cache
    config:
      response_code:
      - 200
      request_method:
      - GET
      content_type:
      - text/plain
      - application/json
      cache_ttl: 300
      strategy: memory
Copied to clipboard!

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!