rename push cookie for clarity
This commit is contained in:
parent
84b3ec2dc2
commit
1bfe29f2eb
@ -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 {
|
||||
|
@ -1,4 +1,5 @@
|
||||
add_header Link "<{{path|/main.css}}>; rel=preload; as=style; integrity={{integrity|/main.css}}, </fonts/roboto-v29-regular-latin.woff2>; rel=preload; as=font; crossorigin, </fonts/roboto-v29-bold-latin.woff2>; rel=preload; as=font; crossorigin, <{{path|/mask-icon.svg}}>; rel=preload; as=image$preload_resources_uri" always;
|
||||
add_header Set-Cookie $clear_legacy_push_cookie always;
|
||||
add_header Set-Cookie $push_cookie always;
|
||||
http2_push $push_stylesheet;
|
||||
http2_push $push_font_regular;
|
||||
|
Loading…
x
Reference in New Issue
Block a user