Expand description
Tower layer that simplifies setting Cache-Control response header, featuring:
- Opinionated
Cache-Controlvalue based on the response status - Customizable default value
§Usage
[dependencies]
tower-cache-control = "1.1.1"Layer CacheControlLayer comes with a default value (via Default trait),
although it supports a custom CacheControl setting (via axum-extra crate re-export).
Structs§
- Cache
Control Cache-Controlheader, defined in RFC7234 with extensions in RFC8246- Cache
Control Layer - Middleware Layer for the CacheControlService service.
- Cache
Control Service Cache-Controlsetter Service.