CDN as well as Origin cache status says HIT


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?

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.

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

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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.