Disable varnish cache without disabling Cloudflare cache

Status
Not open for further replies.

theomeg2

New Member
Messages
3
Reaction score
0
Points
1
Hi, a web chat support agent told me to add the following line to my htaccess to disable varnish's caching:

' Header set Cache-Control "max-age=0, private, no-cache, no-store, must-revalidate" ', This worked but I encountered an issue:

Cloudflare's cache was getting a miss due to this; http://www.webpagetest.org/result/150511_8W_MR7/1/details/

Webpagetest was recommended by cloudflare to check if caching was working;
https://support.cloudflare.com/hc/e...udFlare-is-caching-my-site-or-a-specific-file-

If you open up the headers you'll see "CF-Cache-status: miss"

I need CloudFlare to continue caching as usual but for Varnish to be ignored.

Is there any solution for this because I'm encountering 5 minute delays from editing a file to it updating.

Thanks!
 

theomeg2

New Member
Messages
3
Reaction score
0
Points
1
Close request: I found a solution by changing the edge time on cloudflare to ignore headers.
 
Status
Not open for further replies.
Top