Skip to content

Commit

Permalink
🔨 Cache fonts 1 week #2827
Browse files Browse the repository at this point in the history
  • Loading branch information
millianapia committed Feb 12, 2025
1 parent 67d1624 commit 7cc2764
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ export default withBundle({
source: '/:path*',
headers: securityHeaders,
},
{
source: '/fonts/(.*)',
headers: [
{
key: 'Cache-Control',
value: 'public, max-age=604800, immutable',
},
],
},
].filter((e) => e)
},
async redirects() {
Expand Down

0 comments on commit 7cc2764

Please sign in to comment.