--server-cache
- CLI
- --server-cache
- REST
- CLI only
Caches successful renders on disk and answers repeat GET / requests from the cache. PATH is a directory that keeps the cache across restarts; without it, the cache lives in the server’s temp directory and is lost on exit.
Caching covers keys, response headers and purging with DELETE /.
Example
CLI
Run locally
zshot --server --server-cache /var/cache/zshot