cache lightning font encodings forever
This commit is contained in:
parent
5232b59625
commit
738bd052f1
@ -41,21 +41,11 @@ module.exports = withPlausibleProxy()({
|
|||||||
headers: corsHeaders
|
headers: corsHeaders
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: '/darkmode.js',
|
source: '/dark.js',
|
||||||
headers: [
|
headers: [
|
||||||
...corsHeaders
|
...corsHeaders
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
source: '/Lightningvolt-xoqm.ttf',
|
|
||||||
headers: [
|
|
||||||
...corsHeaders,
|
|
||||||
{
|
|
||||||
key: 'Cache-Control',
|
|
||||||
value: 'public, max-age=31536000, immutable'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
source: '/.well-known/:slug*',
|
source: '/.well-known/:slug*',
|
||||||
headers: [
|
headers: [
|
||||||
@ -79,7 +69,17 @@ module.exports = withPlausibleProxy()({
|
|||||||
headers: [
|
headers: [
|
||||||
...corsHeaders
|
...corsHeaders
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
...['tff', 'woff', 'woff2'].map(ext => ({
|
||||||
|
source: `/Lightningvolt-xoqm.${ext}`,
|
||||||
|
headers: [
|
||||||
|
...corsHeaders,
|
||||||
|
{
|
||||||
|
key: 'Cache-Control',
|
||||||
|
value: 'public, max-age=31536000, immutable'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}))
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
async rewrites () {
|
async rewrites () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user