diff --git a/examples/edge-functions/netlify.toml b/examples/edge-functions/netlify.toml index 25cbeeb..e439e70 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" @@ -21,5 +25,5 @@ status = 200 [[edge_functions]] function = "post-cache" - path = "/*" + path = "/example/post-cache" cache = "manual"