From a5c1d81fe505f4a94b5ecf987d85de790cfb6882 Mon Sep 17 00:00:00 2001 From: Scott Kennedy Date: Mon, 13 Mar 2023 21:14:49 +0000 Subject: [PATCH] Add some caching rules to netlify.toml --- netlify.toml | 12 +++++++++++- package.json | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/netlify.toml b/netlify.toml index 3a33ffb..d3c08f2 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,4 +3,14 @@ NUXT_IMAGE_DOMAINS = "Comma separated list of domains. example.com,example2.com" [build] - command = "npm run generate" \ No newline at end of file + 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" \ No newline at end of file diff --git a/package.json b/package.json index 29b2314..1f0e1b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "woonuxt", - "version": "3.0.7", + "version": "3.0.8", "private": true, "scripts": { "build": "nuxt build",