What is the cache-handler Caddy module?
masterThe cache-handler module (http.handlers.cache) is a distributed HTTP cache for Caddy based on the Souin cache engine. It provides RFC 7234 compliant HTTP caching, supports the Cache-Status HTTP response header, includes a REST API for purging and listing resources, processes ESI tags, and supports distributed cache configurations.
Important Note on Storage Providers:
Since v1.7.0 of the underlying Souin engine, only one storage provider is implemented by default. To use a specific storage (like otter), you must include it during the Caddy build process using xcaddy and then configure it in your Caddyfile or JSON configuration.
# Example: Building Caddy with the otter storage provider
xcaddy build --with github.com/caddyserver/cache-handler --with github.com/darkweak/storages/otter/caddy