1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 18:30:30 -04:00

valid netlify header syntax

This commit is contained in:
Jake Jarvis 2020-04-24 17:25:04 -04:00
parent 5477e34235
commit 97c6d556d9
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
2 changed files with 7 additions and 13 deletions

View File

@ -1,4 +1,4 @@
# Sensible default security headers # Sensible default security headers:
/* /*
Referrer-Policy: strict-origin-when-cross-origin Referrer-Policy: strict-origin-when-cross-origin
X-Content-Type-Options: nosniff X-Content-Type-Options: nosniff
@ -10,17 +10,13 @@
/vendor/* /vendor/*
Cache-Control: public, max-age=31536000, immutable Cache-Control: public, max-age=31536000, immutable
# Kinda long cache (one week) for favicons, etc. # Proper MIME type for Atom feed:
/img/* /feed.atom
Cache-Control: public, max-age=604800, immutable
# Proper MIME type for Atom feed
/*.atom
Content-Type: application/atom+xml Content-Type: application/atom+xml
# Recommended MIME type for PWA manifests # Recommended MIME type for PWA manifests:
# https://github.com/w3c/manifest/issues/689 # https://github.com/w3c/manifest/issues/689
/manifest.json /manifest.json
Content-Type: application/manifest+json Content-Type: application/manifest+json
/*.webmanifest /site.webmanifest
Content-Type: application/manifest+json Content-Type: application/manifest+json

View File

@ -7,8 +7,6 @@
{{ end -}} {{ end -}}
{{- end }} {{- end }}
# Rewrite generated manifest.json to manifest.webmanifest # Rewrite generated manifest.json to site.webmanifest
# https://github.com/w3c/manifest/issues/689 # https://github.com/w3c/manifest/issues/689
/site.webmanifest /manifest.json 200!
/manifest.webmanifest /manifest.json 200
/site.webmanifest /manifest.json 200