From 01943b1ee76dbd255ad01ce9060cb7c23c0e32ab Mon Sep 17 00:00:00 2001 From: Katherine Beck <49894658+kathmbeck@users.noreply.github.com> Date: Tue, 27 Jan 2026 15:17:00 -0500 Subject: [PATCH 1/3] Add cache headers and update redirects in netlify.toml --- examples/edge-functions/netlify.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/edge-functions/netlify.toml b/examples/edge-functions/netlify.toml index 25cbeeb..b036f60 100644 --- a/examples/edge-functions/netlify.toml +++ b/examples/edge-functions/netlify.toml @@ -9,6 +9,10 @@ ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ." [context.production] environment = { MY_IMPORTANT_VARIABLE = "this is a very important secret" } +[[headers]] + for = "/example/post-cache" + [headers.values] + Cache-Control = "public, max-age=60, s-maxage=60" [[redirects]] from = "/img/og/:text" From 048e45818f3b2fe7ea8b5748acaf3bd1f7a115c4 Mon Sep 17 00:00:00 2001 From: Katherine Beck <49894658+kathmbeck@users.noreply.github.com> Date: Tue, 27 Jan 2026 15:23:43 -0500 Subject: [PATCH 2/3] Update edge function path in netlify.toml --- examples/edge-functions/netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/edge-functions/netlify.toml b/examples/edge-functions/netlify.toml index b036f60..f522afa 100644 --- a/examples/edge-functions/netlify.toml +++ b/examples/edge-functions/netlify.toml @@ -25,5 +25,5 @@ status = 200 [[edge_functions]] function = "post-cache" - path = "/*" + path = "/example/post-cache" cache = "manual" From 7570e20bfe9a8a16e611f784b8aa0fc6171c7a8a Mon Sep 17 00:00:00 2001 From: Katherine Beck <49894658+kathmbeck@users.noreply.github.com> Date: Tue, 27 Jan 2026 15:38:07 -0500 Subject: [PATCH 3/3] Update path for post-cache headers to include wildcard --- examples/edge-functions/netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/edge-functions/netlify.toml b/examples/edge-functions/netlify.toml index f522afa..e439e70 100644 --- a/examples/edge-functions/netlify.toml +++ b/examples/edge-functions/netlify.toml @@ -10,7 +10,7 @@ ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ." environment = { MY_IMPORTANT_VARIABLE = "this is a very important secret" } [[headers]] - for = "/example/post-cache" + for = "/example/post-cache*" [headers.values] Cache-Control = "public, max-age=60, s-maxage=60"