Skip to content

Commit

Permalink
feat: add assets cache & fix manifest content type (#54)
Browse files Browse the repository at this point in the history
* feat: add assets cache & fix manifest content type

* fix: manifest content-type
  • Loading branch information
hannoeru authored Feb 11, 2021
1 parent 92deaa6 commit 235f649
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@
from = "/*"
to = "/index.html"
status = 200

[[headers]]
for = "/manifest.webmanifest"
[headers.values]
Content-Type = "application/manifest+json"
3 changes: 3 additions & 0 deletions public/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/assets/*
cache-control: max-age=31536000
cache-control: immutable

0 comments on commit 235f649

Please sign in to comment.