Set new caching rules (#542)
This commit is contained in:
parent
ea614997a7
commit
199e24a006
@ -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 [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user