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 911f427 commit a5c1d81
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,14 @@
NUXT_IMAGE_DOMAINS = "Comma separated list of domains. example.com,example2.com"

[build]
command = "npm run generate"
command = "npm run generate"

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

[[headers]]
for = "/_ipx/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woonuxt",
"version": "3.0.7",
"version": "3.0.8",
"private": true,
"scripts": {
"build": "nuxt build",
Expand Down

0 comments on commit a5c1d81

Please sign in to comment.