Skip to content

Commit 85ad84c

Browse files
committed
Update default.vcl
1 parent 12bc163 commit 85ad84c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

varnish/default.vcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ sub vcl_backend_response {
211211
# Remove the Set-Cookie header when a specific Wordfence cookie is set
212212
if (beresp.http.Set-Cookie ~ "wfvt_|wordfence_verifiedHuman") {
213213
unset beresp.http.Set-Cookie;
214-
}
214+
}
215215

216216
if (beresp.http.Set-Cookie) {
217217
set beresp.http.X-Cacheable = "NO:Got Cookies";
@@ -237,8 +237,8 @@ sub vcl_deliver {
237237
set resp.http.X-Cacheable = "YES";
238238
}
239239

240-
set resp.http.x-cache-status = req.http.x-cache-status;
241-
set resp.http.x-varnish = resp.http.x-varnish + ", " + req.http.x-cache-status;
240+
set resp.http.x-cache-status = req.http.x-cache-status;
241+
set resp.http.x-varnish = resp.http.x-varnish + ", " + req.http.x-cache-status;
242242

243243
# Cleanup of headers
244244
unset resp.http.x-url;

0 commit comments

Comments
 (0)