Set new caching rules (#542)

This commit is contained in:
Linkie Link authored and GitHub committed 2023-10-14 16:54:41 +02:00
1 parent ea614997a7
commit 199e24a006
1 file changed
+25 -1
+25 -1
View File
@@ -1,7 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
productionBrowserSourceMaps: true,
reactStrictMode: true,
images: {
domains: [
@@ -26,6 +25,31 @@ const nextConfig = {
},
]
},
async headers() {
return [
{
source: '/(.*)?',
headers: [
{
key: 'Referrer-Policy',
value: 'origin-when-cross-origin',
},
{
key: 'Pragma',
value: 'no-cache',
},
{
key: 'Expires',
value: new Date().toString(),
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
],
},
]
},
async rewrites() {
return [
{