From d5351fb220307c2a42c4c721a63903eca01f144b Mon Sep 17 00:00:00 2001 From: prototypa Date: Sun, 6 Nov 2022 16:12:42 -0500 Subject: [PATCH] Cache /assets --- vercel.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 20041ca..722680c 100644 --- a/vercel.json +++ b/vercel.json @@ -1,4 +1,15 @@ { "cleanUrls": true, - "trailingSlash": false + "trailingSlash": false, + "headers": [ + { + "source": "/assets/(.*)", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=31536000, immutable" + } + ] + } + ] }