remove deprecated for unset
This commit is contained in:
parent
07a16cd14e
commit
9f10b6ca04
|
@ -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 :
|
||||
|
||||
~~~
|
||||
|
|
Loading…
Reference in New Issue