CDN as well as Origin cache status says HIT


#1

Hello,

I am leveraging CDN for one of my website.

When I see the response headers for the home page of my site, one of the static JS file’s cache status seems strange.

I can see “cf-cache-status” as HIT. And also x-cache as HIT.

And I also see, via: 1.1 varnish-v4.

What does this mean?


#2

I believe x-cache is from your own server, which looks to be running Varnish. So your Varnish server has its own cache. Cloudflare also caches JS files, so that’s why your’e getting the cf-cache-status HIT.


#3

If cloudflare is responding the user from its cache, what is the purpose the request is going all the way back to origin?


#4

Cloudflare doesn’t send the request to your server for a resource that shows a HIT.