mirror of
https://github.com/caddyserver/website.git
synced 2025-06-14 18:25:12 -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:
|
Mark all successful responses to GET requests as cacheable for upto an hour:
|
||||||
|
|
||||||
```caddy-d
|
```caddy-d
|
||||||
@GET {
|
@GET method GET
|
||||||
method GET
|
|
||||||
}
|
|
||||||
header @GET Cache-Control "max-age=3600" {
|
header @GET Cache-Control "max-age=3600" {
|
||||||
match status 2xx
|
match status 2xx
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,16 +57,16 @@ If only one aspect of the response is relevant to the directive, you can put the
|
||||||
### Inline
|
### Inline
|
||||||
|
|
||||||
```caddy-d
|
```caddy-d
|
||||||
{
|
... {
|
||||||
status <code...>
|
status <code...>
|
||||||
header <field> [<value>]
|
header <field> [<value>]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
```caddy-d
|
```caddy-d
|
||||||
status <code...>
|
... status <code...>
|
||||||
```
|
```
|
||||||
```caddy-d
|
```caddy-d
|
||||||
header <field> [<value>]
|
... header <field> [<value>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Matchers
|
## Matchers
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue