Skip to content

Response Cache

Cache configuration

The configuration options are as follows:

Step 1: Click on endpoint click on backends under you can see Backend Cache and with provided fields enable it.

max_items 
max_size
shared
catching

Note : Notice that max_size and max_items must coexist. Either you declare none, or you declare both.

Individual vs Shared cache

When the cache is individual (shared property is false or missing), every backend definition uses its own cache bucket, and the contents are restricted to the associated backend. It means that other backends or endpoints can’t fetch their contents.

When the cache is shared, instead of creating the cache bucket isolated in the backend, you use a globally available bucket to all endpoints where other backends that need the same cache key can fetch the contents without needing to ask it again

catching

Cache TTL, size

Step 2: For Cache TTL open service settings under you can see options as shown below

catching