diff --git a/src/docs/markdown/caddyfile/directives/header.md b/src/docs/markdown/caddyfile/directives/header.md index b1d10dc..292c9d5 100644 --- a/src/docs/markdown/caddyfile/directives/header.md +++ b/src/docs/markdown/caddyfile/directives/header.md @@ -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 } diff --git a/src/docs/markdown/caddyfile/response-matchers.md b/src/docs/markdown/caddyfile/response-matchers.md index d47d2bc..142ec57 100644 --- a/src/docs/markdown/caddyfile/response-matchers.md +++ b/src/docs/markdown/caddyfile/response-matchers.md @@ -57,16 +57,16 @@ If only one aspect of the response is relevant to the directive, you can put the ### Inline ```caddy-d -{ +... { status header [] } ``` ```caddy-d -status +... status ``` ```caddy-d -header [] +... header [] ``` ## Matchers