diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-05-19 09:28:24 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-05-19 09:28:24 -0400 |
| commit | 9a27eeecbd2782e11e698d7da762fc999802c301 (patch) | |
| tree | 7ffe50478d4320d7e9c5ec9e4d2a2b8d85178050 | |
| parent | aafebaed0004431fe8b619d5c61902fa699dbe55 (diff) | |
simplify favicon.svg rewrite
| -rw-r--r-- | nginx/nginx.conf | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 7a5d8a8f..cbe6bc4a 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -221,7 +221,7 @@ http { location = /favicon.ico { if ($http_accept ~ "image/svg\+xml") { - rewrite ^ /favicon.ico.svg last; + rewrite ^ /favicon.svg last; } include snippets/security-headers.conf; # avoid breaking image hotlinking such as https://github.com/TryGhost/Ghost/issues/12880 @@ -229,15 +229,6 @@ http { add_header Cache-Control "public, max-age=604800"; } - location = /favicon.ico.svg { - internal; - include snippets/security-headers.conf; - # avoid breaking image hotlinking such as https://github.com/TryGhost/Ghost/issues/12880 - add_header Cross-Origin-Resource-Policy "cross-origin" always; - add_header Cache-Control "public, max-age=604800"; - try_files /favicon.svg =404; - } - location = /favicon.svg { include snippets/security-headers.conf; # avoid breaking image hotlinking such as https://github.com/TryGhost/Ghost/issues/12880 |
