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(ハン) 2021-02-11 22:34:46 +09:00 committed by GitHub
parent 92deaa64ba
commit 235f64902e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -10,3 +10,8 @@
from = "/*" from = "/*"
to = "/index.html" to = "/index.html"
status = 200 status = 200
[[headers]]
for = "/manifest.webmanifest"
[headers.values]
Content-Type = "application/manifest+json"

3
public/_headers Normal file
View File

@ -0,0 +1,3 @@
/assets/*
cache-control: max-age=31536000
cache-control: immutable