Skip to content

Commit

Permalink
Changed VCL
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Nov 21, 2024
1 parent cb4ece0 commit 24d7ee9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion platform/varnish.vcl.template
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,15 @@ sub vcl_recv {
/* Authenticated requests are not cacheable */
return (pass);
}

if (req.http.Cookie) {
# only allow cookies in the admin app (for login etc.)
/* only allow cookies in the admin app (for login etc.) */
if(req.url !~ "^/admin(/.*)?$") {
unset req.http.Cookie;
return (hash);
}
/* if other cookies are present, request is not cacheable */
return (pass);
}

return (hash);
Expand Down

0 comments on commit 24d7ee9

Please sign in to comment.