From 235f64902e85841dfb5b85554f4a532fe1b17478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Han=EF=BC=88=E3=83=8F=E3=83=B3=EF=BC=89?= Date: Thu, 11 Feb 2021 22:34:46 +0900 Subject: [PATCH] feat: add assets cache & fix manifest content type (#54) * feat: add assets cache & fix manifest content type * fix: manifest content-type --- netlify.toml | 5 +++++ public/_headers | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 public/_headers diff --git a/netlify.toml b/netlify.toml index f09204e..0512635 100755 --- a/netlify.toml +++ b/netlify.toml @@ -10,3 +10,8 @@ from = "/*" to = "/index.html" status = 200 + +[[headers]] + for = "/manifest.webmanifest" + [headers.values] + Content-Type = "application/manifest+json" \ No newline at end of file diff --git a/public/_headers b/public/_headers new file mode 100644 index 0000000..9079d85 --- /dev/null +++ b/public/_headers @@ -0,0 +1,3 @@ +/assets/* + cache-control: max-age=31536000 + cache-control: immutable