diff options
author | Jorge Lustosa <jorgelustosa@gmail.com> | 2012-03-12 14:04:26 -0300 |
---|---|---|
committer | Jorge Lustosa <jorgelustosa@gmail.com> | 2012-03-12 14:04:26 -0300 |
commit | 8b6ed6d0060a0f396ed0605573219155a0a9a964 (patch) | |
tree | 959379148a36250add6b23f49a06ef3ebb1dbf06 /config/varnish64 | |
parent | 535ffc102de6369f456ae48b8448b5ca46e98805 (diff) | |
download | pfsense-packages-8b6ed6d0060a0f396ed0605573219155a0a9a964.tar.gz pfsense-packages-8b6ed6d0060a0f396ed0605573219155a0a9a964.tar.bz2 pfsense-packages-8b6ed6d0060a0f396ed0605573219155a0a9a964.zip |
problems when downloading pdf files, corrupting the file ...
Diffstat (limited to 'config/varnish64')
-rw-r--r-- | config/varnish64/varnish.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/varnish64/varnish.inc b/config/varnish64/varnish.inc index 24891215..27f41861 100644 --- a/config/varnish64/varnish.inc +++ b/config/varnish64/varnish.inc @@ -468,10 +468,10 @@ function sync_package_varnish() { #set static content var $vcl_recv_static_sufix=($vcl['staticache']=='no'?"pass":"lookup"); $vcl_recv_static ="\t#Enable static cache\n"; - $vcl_recv_static.="\t".'if (req.request=="GET" && req.url ~ "\.(css|js|txt|zip|pdf|rtf|flv|swf|html|htm)$") {'.$vcl_recv_static_prefix."\n\t\treturn($vcl_recv_static_sufix);\n\t\t}\n"; + $vcl_recv_static.="\t".'if (req.request=="GET" && req.url ~ "\.(css|js|txt|zip|rtf|flv|swf|html|htm)$") {'.$vcl_recv_static_prefix."\n\t\treturn($vcl_recv_static_sufix);\n\t\t}\n"; $vcl_recv_static.="\t".'if (req.request=="GET" && req.url ~ "\.(gif|jpg|jpeg|bmp|png|ico|img|tga|wmf|mp3|ogg)$") {'.$vcl_recv_static_prefix."\n\t\treturn($vcl_recv_static_sufix);\n\t\t}\n"; $vcl_fetch_static ="#Enable static cache\n"; - $vcl_fetch_static.='if (req.url ~ "\.(css|js|txt|zip|pdf|rtf|flv|swf|html|htm)$") {'."\n\tunset beresp.http.set-cookie;\n\t}\n"; + $vcl_fetch_static.='if (req.url ~ "\.(css|js|txt|zip|rtf|flv|swf|html|htm)$") {'."\n\tunset beresp.http.set-cookie;\n\t}\n"; $vcl_fetch_static.='if (req.url ~ "\.(gif|jpg|jpeg|bmp|png|ico|img|tga|wmf|mp3|ogg)$") {'."\n\tunset beresp.http.set-cookie;\n\t}\n"; switch ($vcl['staticache']){ |