tower-cache-control 1.0.0

Tower middleware to set Cache-Control response header
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
*Tower* layer that simplify setting `Cache-Control` response header, featuring:
- Opinionated `Cache-Control` value based on the response status
- Customizable default value

---

## Installation

```toml
[dependencies]
tower-cache-control = "1.0.0"
```
## Usage

Layer `CacheControlLayer` comes with a default value (via `Default` trait),
although it supports a custom `CacheControl` setting (via `axum-extra` crate re-export).