Skip to content

Commit 517c9ef

Browse files
committed
avoid regex location for webmanifest
1 parent fa6725b commit 517c9ef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

nginx/nginx.conf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,12 @@ http {
325325
location = /allowed_signers.sig {}
326326
location = /allowed_signers.asc {}
327327

328+
location = /manifest.webmanifest {
329+
include snippets/security-headers.conf;
330+
add_header Cross-Origin-Resource-Policy "same-origin" always;
331+
add_header Cache-Control "public, max-age=604800";
332+
}
333+
328334
location = /favicon.ico {
329335
if ($http_accept ~ "image/svg\+xml") {
330336
rewrite ^ /favicon.svg last;
@@ -408,12 +414,6 @@ http {
408414
add_header Cache-Control "public, max-age=31536000, immutable";
409415
}
410416

411-
location ~ "\.webmanifest$" {
412-
include snippets/security-headers.conf;
413-
add_header Cross-Origin-Resource-Policy "same-origin" always;
414-
add_header Cache-Control "public, max-age=604800";
415-
}
416-
417417
location ~ "\.svg$" {
418418
include snippets/security-headers.conf;
419419
add_header Cross-Origin-Resource-Policy "same-origin" always;

0 commit comments

Comments
 (0)