How do I disable server-side caching?

We use Varnish to cache images for 30 minutes and all dynamic content (html, php, etc) files for 5 seconds. 

If, for whatever reason you don't want us to cache your website, you can disable it by putting the following piece of code in your .htaccess:

Header set Cache-Control "max-age=0, private, no-cache, no-store, must-revalidate"

Within 25 minutes, you should now only see live data on your website.  We however recommend that you leave caching enabled as it'll make your website much faster.

Please be aware that this does not disable the Varnish Proxy for your site, only disables any caching mechanism, this includes client-side caching, so each visitor has to redownload every resource on your site every time the page is reloaded, for this reason it's recommended only using it if you are developing your site and/or if the resources are constantly changing.

If you want a more permanent solution, you can ask us to add your site to the cache exclusion list.

Was this answer helpful?

 Print this Article

Also Read

How do I change my domain WHOIS information?

Log into the billing portal at https://billing.stablehost.com Click on 'My Domains' Click...

How do I upload files?

You can upload your html and images to your website via FTP.    You will use the login specified...

How do I setup private nameservers?

Setting up private nameservers is fairly simple, however it all depends on where you registered...

How long does it take for my WHOIS privacy to be enabled?

At this time, WHOIS Privacy is not an instant change.    When you request WHOIS privacy, it goes...

How do I configure my MySQL databases?

Please view this video tutorial: http://www.cpanel.net/media/tutorials/addmysql.htm