diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-05-17 10:02:00 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-05-17 10:58:14 -0400 |
| commit | cf9bc8d45f274941bf5c8b4183fa38b8fe436604 (patch) | |
| tree | 4ed2e6d095978d8d606bac7e2b42b55d5b7fc632 /nginx | |
| parent | 14f38d1b8eae0dca312fe05300ea2a7ec975c1b8 (diff) | |
use SVG for /favicon.ico if browser asks for it
This makes Chromium use the SVG favicon universally including as the
favicon for non-HTML files.
Diffstat (limited to 'nginx')
| -rw-r--r-- | nginx/nginx.conf | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 3f87f22e..6a6dbb1c 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -215,6 +215,9 @@ http { } location = /favicon.ico { + if ($http_accept ~ "image/svg\+xml") { + rewrite ^ /favicon.svg last; + } 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; |
