feat: add assets cache & fix manifest content type (#54)

* feat: add assets cache & fix manifest content type

* fix: manifest content-type
This commit is contained in:
Han(ハン) authored and GitHub committed 2021-02-11 21:34:46 +08:00
1 parent 92deaa64ba
commit 235f64902e
2 files changed
+8

No files matched your search

+5
View File
@@ -10,3 +10,8 @@
from = "/*"
to = "/index.html"
status = 200
[[headers]]
for = "/manifest.webmanifest"
[headers.values]
Content-Type = "application/manifest+json"
+3
View File
@@ -0,0 +1,3 @@
/assets/*
cache-control: max-age=31536000
cache-control: immutable