diff --git a/bin/build-vercel-json.js b/bin/build-vercel-json.js index 24874a23..81af2e07 100644 --- a/bin/build-vercel-json.js +++ b/bin/build-vercel-json.js @@ -44,7 +44,13 @@ const JSON_TEMPLATE = { } }, { - src: '^/.*\\.(png|css|json|svg|jpe?g|map|txt|gz|webapp|woff|woff2)$', + src: '^/.*\\.(png|jpe?g)$', + headers: { + 'cache-control': 'public,max-age=31536000,immutable' + } + }, + { + src: '^/.*\\.(css|json|svg|map|txt|gz|webapp|woff|woff2)$', headers: { 'cache-control': 'public,max-age=3600' } diff --git a/package.json b/package.json index 68011483..c8a50b3b 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "2.6.0", "type": "module", "engines": { - "node": "^12.20.0 || ^14.13.1 || ^16.0.0 || ^18.0.0" + "node": "^12.20.0 || ^14.13.1 || ^16.0.0 || ^18.0.0 || ^20.0.0" }, "scripts": { "lint": "standard && standard --plugin html 'src/routes/**/*.html'", diff --git a/vercel.json b/vercel.json index 9d05812d..56ab19fc 100644 --- a/vercel.json +++ b/vercel.json @@ -29,7 +29,13 @@ } }, { - "src": "^/.*\\.(png|css|json|svg|jpe?g|map|txt|gz|webapp|woff|woff2)$", + "src": "^/.*\\.(png|jpe?g)$", + "headers": { + "cache-control": "public,max-age=31536000,immutable" + } + }, + { + "src": "^/.*\\.(css|json|svg|map|txt|gz|webapp|woff|woff2)$", "headers": { "cache-control": "public,max-age=3600" }