Cache a reverse proxy site
Enabling cache on a reverse proxy site stores upstream responses locally, so repeated requests hit the cache instead of the origin — lower origin load, faster responses.
1 Turn the cache on
In the reverse proxy site’s “Advanced settings → Cache”:
- Tick Enable cache;
- Set the cache folder and its maximum size;
- Set the time to live (TTL);
- Save and restart the site.
2 Cache options
| Option | Description |
|---|---|
| Cache folder | Local path that stores cached responses |
| Max size | Evicts old entries with LRU once exceeded |
| TTL | Longest time a resource stays cached |
| Ignore query | Whether the full query string is part of the cache key |
3 When it helps
- Sites with plenty of static assets (images, scripts, styles);
- An origin that is weak and needs to absorb traffic spikes.
For APIs whose content changes often, disable the cache or keep the TTL short to avoid stale responses.