This commit is contained in:
Kentai Radiquum 2025-02-10 06:31:40 +05:00
parent 5485065b36
commit 628b3870d8
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 72 additions and 34 deletions

View file

@ -10,7 +10,7 @@ module.exports = withPlausibleProxy({
async headers() { async headers() {
return [ return [
{ {
source: '/bookmarks/[slug]', source: '/bookmarks/:slug*',
headers: [ headers: [
{ {
key: 'Cache-Control', key: 'Cache-Control',
@ -19,7 +19,7 @@ module.exports = withPlausibleProxy({
], ],
}, },
{ {
source: '/collection/[id]', source: '/collection/:slug*',
headers: [ headers: [
{ {
key: 'Cache-Control', key: 'Cache-Control',
@ -28,7 +28,7 @@ module.exports = withPlausibleProxy({
], ],
}, },
{ {
source: '/home/[slug]', source: '/home/:slug*',
headers: [ headers: [
{ {
key: 'Cache-Control', key: 'Cache-Control',
@ -37,7 +37,7 @@ module.exports = withPlausibleProxy({
], ],
}, },
{ {
source: '/profile/[id]', source: '/profile/:slug*',
headers: [ headers: [
{ {
key: 'Cache-Control', key: 'Cache-Control',
@ -46,7 +46,7 @@ module.exports = withPlausibleProxy({
], ],
}, },
{ {
source: '/profile/[id]/bookmarks/[slug]', source: '/release/:slug*',
headers: [ headers: [
{ {
key: 'Cache-Control', key: 'Cache-Control',
@ -55,34 +55,7 @@ module.exports = withPlausibleProxy({
], ],
}, },
{ {
source: '/profile/[id]/:path', source: '/related/:slug*',
headers: [
{
key: 'Cache-Control',
value: 's-maxage=2592000, stale-while-revalidate=86400',
},
],
},
{
source: '/release/[id]',
headers: [
{
key: 'Cache-Control',
value: 's-maxage=2592000, stale-while-revalidate=86400',
},
],
},
{
source: '/release/[id]/collections',
headers: [
{
key: 'Cache-Control',
value: 's-maxage=2592000, stale-while-revalidate=86400',
},
],
},
{
source: '/related/[id]',
headers: [ headers: [
{ {
key: 'Cache-Control', key: 'Cache-Control',

View file

@ -4,5 +4,70 @@
"V3": false, "V3": false,
"V2": false "V2": false
} }
},
"headers": [
{
"source": "/bookmarks/:slug*",
"headers": [
{
"key": "Cache-Control",
"value": "s-maxage=2592000, stale-while-revalidate=86400"
} }
]
},
{
"source": "/collection/:slug*",
"headers": [
{
"key": "Cache-Control",
"value": "s-maxage=2592000, stale-while-revalidate=86400"
}
]
},
{
"source": "/home/:slug*",
"headers": [
{
"key": "Cache-Control",
"value": "s-maxage=2592000, stale-while-revalidate=86400"
}
]
},
{
"source": "/profile/:slug*",
"headers": [
{
"key": "Cache-Control",
"value": "s-maxage=2592000, stale-while-revalidate=86400"
}
]
},
{
"source": "/release/:slug*",
"headers": [
{
"key": "Cache-Control",
"value": "s-maxage=2592000, stale-while-revalidate=86400"
}
]
},
{
"source": "/related/:slug*",
"headers": [
{
"key": "Cache-Control",
"value": "s-maxage=2592000, stale-while-revalidate=86400"
}
]
},
{
"source": "/search",
"headers": [
{
"key": "Cache-Control",
"value": "s-maxage=2592000, stale-while-revalidate=86400"
}
]
}
]
} }