22
0
Fork 0

remove deprecated for unset

This commit is contained in:
Benoît S. 2017-08-17 16:32:26 +02:00
parent 07a16cd14e
commit 9f10b6ca04
1 changed files with 2 additions and 1 deletions

View File

@ -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 :
~~~