From 41af0207095635f7630b19fef983a9b55436486f Mon Sep 17 00:00:00 2001 From: zyronon Date: Wed, 3 Apr 2024 22:43:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0netlify=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- netlify.toml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..8f5f4a1 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,29 @@ +[[headers]] + for = "/*.js" + [headers.values] + Cache-Control = "public, max-age=31536000, must-revalidate" + +[[headers]] + for = "/*.css" + [headers.values] + Cache-Control = "public, max-age=31536000, must-revalidate" + +[[headers]] + for = "/*.png" + [headers.values] + Cache-Control = "public, max-age=31536000, must-revalidate" + +[[headers]] + for = "/*.jpg" + [headers.values] + Cache-Control = "public, max-age=31536000, must-revalidate" + +[[headers]] + for = "/*.webp" + [headers.values] + Cache-Control = "public, max-age=31536000, must-revalidate" + +[[headers]] + for = "/*.svg" + [headers.values] + Cache-Control = "public, max-age=31536000, must-revalidate" \ No newline at end of file