From 1ecfef82908eda6e4c4a2178e9af5cc5c26cef8e Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Mon, 9 Jun 2025 12:17:03 -0400 Subject: [PATCH] Apply suggestions from code review --- src/docs/markdown/caddyfile/directives/header.md | 4 +--- src/docs/markdown/caddyfile/response-matchers.md | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) 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