Skip to content

Commit

Permalink
Add some caching rules to netlify.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyzen committed Mar 13, 2023
1 parent a5c1d81 commit bdb4889
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,25 @@

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

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

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

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

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

0 comments on commit bdb4889

Please sign in to comment.