diff --git a/vercel.json b/vercel.json index 11602b7c..ede75882 100644 --- a/vercel.json +++ b/vercel.json @@ -3,5 +3,25 @@ "git": { "deploymentEnabled": false }, - "rewrites": [{ "source": "/:path*", "destination": "/index.html" }] + "rewrites": [{ "source": "/:path*", "destination": "/index.html" }], + "headers": [ + { + "source": "/index.html", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=0, must-revalidate" + } + ] + }, + { + "source": "/assets/(.*)", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=31536000, immutable" + } + ] + } + ] } \ No newline at end of file