Skip to content

Commit

Permalink
feat(netlify): Implement caching for static assets
Browse files Browse the repository at this point in the history
  • Loading branch information
peerless-hero committed Dec 23, 2024
1 parent 61aa3aa commit a5f1643
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ command = "npm run build"
[build.environment]
NODE_VERSION = "20"

[[headers]]
for = "/assets/*"
[headers.values]
Cache-Control = "public, max-age=31536000"

[[redirects]]
from = "/*"
to = "/index.html"
Expand Down

0 comments on commit a5f1643

Please sign in to comment.