• Noon

    (@sevenkader)


    Normally when Varnish caches, it returns 2 different numbers in the header indicating that the cache is working. When I turn this plugin on that second number is no longer there indicating that it’s not being cached.. When I turn it off, the second number reappears again. How do I resolve this?

Viewing 1 replies (of 1 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    the way Cloudflare cahing works is that when Cloudflare receives the first request for a page, it is served by the origin server. After receiving the first request CF caches that content and from then on all the requests are served by cloudflare server. So, the request doesn’t even reach to your origin server and that’s why Varnish did get a chance to cache the item.

    Now once the cache expires in CF CDN server, the request again will go to the origin server at that time varnish might kick in and then again after received the response of the request CF will cache the content and the cycle goes on…

Viewing 1 replies (of 1 total)
  • The topic ‘Varnish doesn’t seem to cache when this plugin is on’ is closed to new replies.