diff options
author | Marcello Coutinho <marcellocoutinho@gmail.com> | 2012-03-12 10:25:43 -0700 |
---|---|---|
committer | Marcello Coutinho <marcellocoutinho@gmail.com> | 2012-03-12 10:25:43 -0700 |
commit | b003bf9e166b04b1f72d43ce84311105b6b3de67 (patch) | |
tree | 959379148a36250add6b23f49a06ef3ebb1dbf06 /config/varnish64 | |
parent | 535ffc102de6369f456ae48b8448b5ca46e98805 (diff) | |
parent | 8b6ed6d0060a0f396ed0605573219155a0a9a964 (diff) | |
download | pfsense-packages-b003bf9e166b04b1f72d43ce84311105b6b3de67.tar.gz pfsense-packages-b003bf9e166b04b1f72d43ce84311105b6b3de67.tar.bz2 pfsense-packages-b003bf9e166b04b1f72d43ce84311105b6b3de67.zip |
Merge pull request #223 from jorgelustosa/patch-6
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']){ |