Apply suggestions from code review

This commit is contained in:
Francis Lavoie 2025-06-09 12:17:03 -04:00 committed by GitHub
parent c71a3d7831
commit 1ecfef8290
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View file

@ -130,9 +130,7 @@ reverse_proxy upstream:443
Mark all successful responses to GET requests as cacheable for upto an hour:
```caddy-d
@GET {
method GET
}
@GET method GET
header @GET Cache-Control "max-age=3600" {
match status 2xx
}

View file

@ -57,16 +57,16 @@ If only one aspect of the response is relevant to the directive, you can put the
### Inline
```caddy-d
{
... {
status <code...>
header <field> [<value>]
}
```
```caddy-d
status <code...>
... status <code...>
```
```caddy-d
header <field> [<value>]
... header <field> [<value>]
```
## Matchers