diff --git a/HowtoVarnish.md b/HowtoVarnish.md index 96e31c82..dc1f3b81 100644 --- a/HowtoVarnish.md +++ b/HowtoVarnish.md @@ -587,7 +587,7 @@ sub vcl_recv { if (req.http.Accept-Encoding) { # Compress a compressed format is silly if (req.url ~ "\.(jpg|jpeg|png|gif|gz|tgz|bz2|lzma|tbz|zip|rar)(\?.*|)$") { - remove req.http.Accept-Encoding; + unset req.http.Accept-Encoding; } # use gzip when possible, otherwise use deflate if (req.http.Accept-Encoding ~ "gzip") { @@ -761,6 +761,7 @@ Sous Debian 7 (Wheezy), Varnish 3 a pas mal de différences : * `req.request` ← `req.method` * `vcl_error` ← `vcl_backend_error` * `obj.http` ← `resp.http` +* `remove` ← `unset` * pour avoir un entête HTTP X-Cache avec HIT ou MISS, il faut modifier la sous-routine *vcl_deliver* ainsi : ~~~