avoid regex location for webmanifest
This commit is contained in:
parent
fa6725b935
commit
517c9ef396
@ -325,6 +325,12 @@ http {
|
|||||||
location = /allowed_signers.sig {}
|
location = /allowed_signers.sig {}
|
||||||
location = /allowed_signers.asc {}
|
location = /allowed_signers.asc {}
|
||||||
|
|
||||||
|
location = /manifest.webmanifest {
|
||||||
|
include snippets/security-headers.conf;
|
||||||
|
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
||||||
|
add_header Cache-Control "public, max-age=604800";
|
||||||
|
}
|
||||||
|
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
if ($http_accept ~ "image/svg\+xml") {
|
if ($http_accept ~ "image/svg\+xml") {
|
||||||
rewrite ^ /favicon.svg last;
|
rewrite ^ /favicon.svg last;
|
||||||
@ -408,12 +414,6 @@ http {
|
|||||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ "\.webmanifest$" {
|
|
||||||
include snippets/security-headers.conf;
|
|
||||||
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
|
||||||
add_header Cache-Control "public, max-age=604800";
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ "\.svg$" {
|
location ~ "\.svg$" {
|
||||||
include snippets/security-headers.conf;
|
include snippets/security-headers.conf;
|
||||||
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user