From 97c6d556d965f1469ad677160cf34c02a44d0f17 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Fri, 24 Apr 2020 17:25:04 -0400 Subject: [PATCH] valid netlify header syntax --- layouts/index.headers | 14 +++++--------- layouts/index.redirects | 6 ++---- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/layouts/index.headers b/layouts/index.headers index f5044ac7..3224e0c0 100644 --- a/layouts/index.headers +++ b/layouts/index.headers @@ -1,4 +1,4 @@ -# Sensible default security headers +# Sensible default security headers: /* Referrer-Policy: strict-origin-when-cross-origin X-Content-Type-Options: nosniff @@ -10,17 +10,13 @@ /vendor/* Cache-Control: public, max-age=31536000, immutable -# Kinda long cache (one week) for favicons, etc. -/img/* - Cache-Control: public, max-age=604800, immutable - -# Proper MIME type for Atom feed -/*.atom +# Proper MIME type for Atom feed: +/feed.atom Content-Type: application/atom+xml -# Recommended MIME type for PWA manifests +# Recommended MIME type for PWA manifests: # https://github.com/w3c/manifest/issues/689 /manifest.json Content-Type: application/manifest+json -/*.webmanifest +/site.webmanifest Content-Type: application/manifest+json diff --git a/layouts/index.redirects b/layouts/index.redirects index a184d7c9..53fdf434 100644 --- a/layouts/index.redirects +++ b/layouts/index.redirects @@ -7,8 +7,6 @@ {{ end -}} {{- end }} -# Rewrite generated manifest.json to manifest.webmanifest +# Rewrite generated manifest.json to site.webmanifest # https://github.com/w3c/manifest/issues/689 - -/manifest.webmanifest /manifest.json 200 -/site.webmanifest /manifest.json 200 +/site.webmanifest /manifest.json 200!