simplify favicon.svg rewrite
This commit is contained in:
parent
aafebaed00
commit
9a27eeecbd
@ -221,7 +221,7 @@ http {
|
|||||||
|
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
if ($http_accept ~ "image/svg\+xml") {
|
if ($http_accept ~ "image/svg\+xml") {
|
||||||
rewrite ^ /favicon.ico.svg last;
|
rewrite ^ /favicon.svg last;
|
||||||
}
|
}
|
||||||
include snippets/security-headers.conf;
|
include snippets/security-headers.conf;
|
||||||
# avoid breaking image hotlinking such as https://github.com/TryGhost/Ghost/issues/12880
|
# 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";
|
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 {
|
location = /favicon.svg {
|
||||||
include snippets/security-headers.conf;
|
include snippets/security-headers.conf;
|
||||||
# avoid breaking image hotlinking such as https://github.com/TryGhost/Ghost/issues/12880
|
# avoid breaking image hotlinking such as https://github.com/TryGhost/Ghost/issues/12880
|
||||||
|
Loading…
x
Reference in New Issue
Block a user