diff --git a/vercel.json b/vercel.json index 727a702d..01b6c02b 100644 --- a/vercel.json +++ b/vercel.json @@ -1,5 +1,25 @@ { "buildCommand": "npm run build", "outputDirectory": "dist", - "installCommand": "npm install" + "installCommand": "npm install", + "headers": [ + { + "source": "/sw.min.js", + "headers": [ + { "key": "Cache-Control", "value": "no-cache, must-revalidate" } + ] + }, + { + "source": "/", + "headers": [ + { "key": "Cache-Control", "value": "no-cache, must-revalidate" } + ] + }, + { + "source": "/(.*\\.html)", + "headers": [ + { "key": "Cache-Control", "value": "no-cache, must-revalidate" } + ] + } + ] }