mirror of
https://github.com/caddyserver/website.git
synced 2025-06-14 10:14:49 -04:00
Apply suggestions from code review
This commit is contained in:
parent
c71a3d7831
commit
1ecfef8290
2 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue