cache lightning font encodings forever

This commit is contained in:
keyan 2023-07-29 15:15:58 -05:00
parent 5232b59625
commit 738bd052f1
1 changed files with 12 additions and 12 deletions

View File

@ -41,21 +41,11 @@ module.exports = withPlausibleProxy()({
headers: corsHeaders
},
{
source: '/darkmode.js',
source: '/dark.js',
headers: [
...corsHeaders
]
},
{
source: '/Lightningvolt-xoqm.ttf',
headers: [
...corsHeaders,
{
key: 'Cache-Control',
value: 'public, max-age=31536000, immutable'
}
]
},
{
source: '/.well-known/:slug*',
headers: [
@ -79,7 +69,17 @@ module.exports = withPlausibleProxy()({
headers: [
...corsHeaders
]
}
},
...['tff', 'woff', 'woff2'].map(ext => ({
source: `/Lightningvolt-xoqm.${ext}`,
headers: [
...corsHeaders,
{
key: 'Cache-Control',
value: 'public, max-age=31536000, immutable'
}
]
}))
]
},
async rewrites () {