Etiket: PROXY
-
Varnish cache, How to cache static content
There is a lots of proxy cache options out there but fastest one of those is Varnish cache.The default configuration comes with barebones options with default.vcl. You can edit default.vcl file and add these following options to cache static content. sub vcl_recv { if (req.url ~ “.*.(?:css|js|jpe?g|png|gif|ico|swf)(?=?|&|$)”) { unset req.http.Cookie; return (hash); } } sub…