about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--netlify.toml5
-rw-r--r--vercel.json4
2 files changed, 9 insertions, 0 deletions
diff --git a/netlify.toml b/netlify.toml
index ec9c017..ec51225 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -23,3 +23,8 @@ Strict-Transport-Security = "max-age=63072000; includeSubdomains"
 # openssl dgst -sha256 -binary < templates/style.css.html | openssl enc -base64
 # and paste the output after sha256-
 Content-Security-Policy = "default-src 'none'; img-src 'self'; object-src 'none'; script-src 'none'; style-src 'sha256-p5EfRIhWJi7Zh7WJil3mpIVCZvcu+zebWbMe6B0so8A='; form-action 'none'; base-uri 'self'; frame-ancestors 'none'"
+Cache-Control = '''
+  max-age=300,
+  s-maxage=86400,
+  state-while-revalidate
+'''
diff --git a/vercel.json b/vercel.json
index 071f918..c23d334 100644
--- a/vercel.json
+++ b/vercel.json
@@ -35,6 +35,10 @@
         {
           "key": "Content-Security-Policy",
           "value": "default-src 'none'; img-src 'self'; object-src 'none'; script-src 'none'; style-src 'sha256-p5EfRIhWJi7Zh7WJil3mpIVCZvcu+zebWbMe6B0so8A='; form-action 'none'; base-uri 'self'; frame-ancestors 'none'"
+        },
+        {
+          "key": "Cache-Control",
+          "value": "max-age=300, s-maxage=86400, state-while-revalidate"
         }
       ]
     }