rename push cookie for clarity

This commit is contained in:
Daniel Micay
2021-12-11 10:17:08 -05:00
parent 84b3ec2dc2
commit 1bfe29f2eb
2 changed files with 7 additions and 2 deletions

View File

@@ -77,13 +77,17 @@ http {
/index.html ", </phone.png>; rel=preload; as=image";
}
map $http_cookie $clear_legacy_push_cookie {
~__Host-preload= "__Host-preload=; HttpOnly; Secure; SameSite=Lax; Path=/; Max-Age=0";
}
map $http_cookie $nopush {
~__Host-preload=1 1;
~__Host-push=1 1;
default 0;
}
map $nopush $push_cookie {
0 "__Host-preload=1; HttpOnly; Secure; SameSite=Lax; Path=/";
0 "__Host-push=1; HttpOnly; Secure; SameSite=Lax; Path=/";
}
map $nopush $push_stylesheet {