By mastermindg on
I'm working on a development site on a shared hosting environment. The Varnish server is OLD and I'm getting a bunch of errors related to it.
Question:
How can I disable Varnish without disabling Drupal's built-in caching?
I've set Cache-Control to max-age=1 and the rest of the settings are there. My header reads:
HTTP/1.1 403 Forbidden
Server: Apache/2.4.4
X-Powered-By: PHP/5.4.4-14
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0, max-age=1
HTTP Cache-Control : max-age=1
Content-Language: en
X-Generator: Drupal 7 (http://drupal.org)
Last-Modified: Fri, 24 May 2013 11:59:33 GMT
ETag: "1369396773"
Content-Type: text/html; charset=utf-8
Date: Fri, 24 May 2013 11:59:33 GMT
Via: 1.1 varnish
Connection: keep-alive
Accept-Ranges: bytes
Age: 0
Comments
Weird...I'm still getting
Weird...I'm still getting Varnish errors in the admin area. Does anybody know if the cache-control object needs to be head in the header of the html? If so, how can that be done in Drupal?
## Note: The above code is fictitious. Any resemblance to real or actual working code is purely coincidental.