Set new caching rules (#542)

This commit is contained in:
Linkie Link 2023-10-14 16:54:41 +02:00 committed by GitHub
parent ea614997a7
commit 199e24a006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 [
{