Temporarily disable varnish cache

How can I disable Varnish cache?

Varnish is a HTTP/web page accelerator. We use Varnish both as a load balancer and to speed up page loads by having varnish answer requests, instead of storage servers (which answer slower). Basically Varnish makes a web page faster.

Sometimes it is useful to temporarily disable varnish cache, for example when editing your website. You can do this by adding a .htaccess file with the following code to the directory that you are editing.


I'm 26 years old, a web developer from Nha Trang, Viet Nam. I love travelling and listen to rock music all day. This site is where I share my knowledges, my moments and some stuff...Wanna drink some beer? Feel free to contact me at the footer.