ansible-roles/boost-proxy/templates-examples/varnish/conf.d/cleanup_requests_static.recv.vcl

8 lines
291 B
Plaintext

# Cleanup requests on static binary files and force serving from cache.
if (req.url ~ "\.(jpe?g|png|gif|ico|swf|gz|zip|rar|bz2|tgz|tbz|pdf|pls|torrent|mp4)(\?.*|)$") {
unset req.http.Authenticate;
unset req.http.POSTDATA;
unset req.http.cookie;
### set req.method = "GET";
}