I don't see cache hit

I connected my Cloudflare to my blog. I look at the image headers and it doesn’t show cache: hit. The image is served from the same remote address as the origin server.

Any idea what can I do to verify that images are cached from Cloudflare CDN?

Thanks.

1 Like

What’s the url of one of those images?

3 Likes

This is one:

https://sightseeingexpress.com/wp-content/uploads/2019/08/deer-crowd-japan-nara-1170x550.jpg

That got a HIT on the first try. What headers are you seeing?
15%20PM

Using Google Chrome to check the response headers for the image:

  1. accept-ranges:

bytes

  1. cache-control:

max-age=691200

  1. content-encoding:

gzip

  1. content-type:

image/jpeg

  1. date:

Sat, 31 Aug 2019 21:28:04 GMT

  1. etag:

“644200e-2ce1e-5916e2ea80300-gzip”

  1. expires:

Sun, 08 Sep 2019 21:28:04 GMT

  1. last-modified:

Sat, 31 Aug 2019 18:48:18 GMT

  1. server:

Apache

  1. status:

200

  1. strict-transport-security:

max-age=63072000; includeSubDomains

  1. vary:

Accept-Encoding

  1. x-content-type-options:

nosniff

  1. x-frame-options:

SAMEORIGIN

1 Like

That’s not going through Cloudflare, as shown by a lack of cf- headers and Apache as the server.

So…for some reason, your DNS isn’t giving you Cloudflare’s IP address for your domain. How long ago did you add your domain to Cloudflare? It can take up to 48 hours for DNS to propagate.

1 Like

two hours ago. I check a website that checked the DNS and I do get cloudflare DNS entries. So it’s not consistent, I should wait 48 hours?

You can try flushing your browser’s cache, and/or using different Public DNS servers, such as Cloudflare’s 1.1.1.1 or Quad9’s 9.9.9.9. Otherwise, you may just have to wait for your ISP’s DNS to catch up.

The image URL is served from Cloudflare’s CDN, right? The URL of the image will be the same or different?

It will be the same. Cloudflare’s CDN is transparent.

1 Like

Appreciate your time sdayman. Thank you. I’ll try again a few hours from now.

1 Like

It’s ok.

https://sightseeingexpress.com/cdn-cgi/trace

This topic was automatically closed after 31 days. New replies are no longer allowed.