Commit 23dd12711fcba5f3898cd93d8c5e1aa8daaa7509
1 parent
ad272fe1
Exists in
master
and in
29 other branches
[varnish] do not return() from our custom VCL
This lets the default VCL logic do its job
Showing
2 changed files
with
12 additions
and
5 deletions
Show diff stats
etc/noosfero/varnish-noosfero.vcl
... | ... | @@ -3,13 +3,11 @@ sub vcl_recv { |
3 | 3 | if (req.http.Cookie) { |
4 | 4 | # We only care about the "_noosfero_session.*" cookie, used for |
5 | 5 | # authentication. |
6 | - if (req.http.Cookie ~ "_noosfero_session.*" ) { | |
7 | - return (pass); | |
6 | + if (req.http.Cookie !~ "_noosfero_session.*" ) { | |
7 | + # strip all cookies | |
8 | + unset req.http.Cookie; | |
8 | 9 | } |
9 | - # Else strip all cookies | |
10 | - unset req.http.Cookie; | |
11 | 10 | } |
12 | - } | |
13 | 11 | } |
14 | 12 | |
15 | 13 | sub vcl_error { | ... | ... |