From 1bfe29f2eb0ff5cb0c7f38fc07bec6649e7e13f1 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 11 Dec 2021 10:17:08 -0500 Subject: rename push cookie for clarity --- nginx/nginx.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'nginx/nginx.conf') diff --git a/nginx/nginx.conf b/nginx/nginx.conf index b85a4c95..674b2e8d 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -77,13 +77,17 @@ http { /index.html ", ; 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 { -- cgit v1.3.1