Why is my site not cached on the CloudFlare network

When i download something from my site the dl link doesn’t have cloudflare on it,
i also use glasswire to see ip that the download “happens” and it belongs to the hosting provider nor cloud flare
i enabled cache every in the rule page, and my account is free

Look at the DNS entries for your server - is it using an orange cloud or grey cloud?

Hi

Did you point NS record at your registar to cloudflare DNS servers? Free account does not support Cname setup. Do dig +trace DOMAIN and post results

Regards
Miroslaw Pabian

No your whole domain need to be pointed at cloudlare DNS it need to be auth DNS server.

If you ping domain (site) what IP you get , is this one of CF IP ?

Hi,

Cloudlare IPS are anycast so most likely you connecting to closest pop.

You can use http://site/cdn-cgi/trace to check.

When you hit site what are cf-caching-status headers ?, Please keep in mind size of file you want to cache is too large or not on the list of default cached files Understanding Cloudflare's CDN – Cloudflare Help Center

Please give us site you working.

Regards,
Miroslaw Pabian

1 Like

Please read article I have posted before Understanding Cloudflare's CDN – Cloudflare Help Center , zip and rar are not cached by default you need to create page rules for it. I can see main page have hit on cache

Additionally I`m sure you going to closest pop check your headers cf-ray or do trace as mentioned before.

curl https://seedboxabuser.org -ivkI

  • Expire in 0 ms for 6 (transfer 0x555760e45f90)
  • Expire in 1 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 1 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 1 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 2 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 2 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 2 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 2 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 2 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 2 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 2 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 2 ms for 1 (transfer 0x555760e45f90)
  • Expire in 0 ms for 1 (transfer 0x555760e45f90)
  • Expire in 1 ms for 1 (transfer 0x555760e45f90)
  • Expire in 2 ms for 1 (transfer 0x555760e45f90)
  • Expire in 1 ms for 1 (transfer 0x555760e45f90)
  • Expire in 1 ms for 1 (transfer 0x555760e45f90)
  • Expire in 1 ms for 1 (transfer 0x555760e45f90)
  • Trying 104.21.56.51…
  • TCP_NODELAY set
  • Expire in 149998 ms for 3 (transfer 0x555760e45f90)
  • Expire in 200 ms for 4 (transfer 0x555760e45f90)
  • Connected to seedboxabuser.org (104.21.56.51) port 443 (#0)
  • ALPN, offering h2
  • ALPN, offering http/1.1
  • successfully set certificate verify locations:
  • CAfile: none
    CApath: /etc/ssl/certs
  • TLSv1.3 (OUT), TLS handshake, Client hello (1):
  • TLSv1.3 (IN), TLS handshake, Server hello (2):
  • TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
  • TLSv1.3 (IN), TLS handshake, Certificate (11):
  • TLSv1.3 (IN), TLS handshake, CERT verify (15):
  • TLSv1.3 (IN), TLS handshake, Finished (20):
  • TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
  • TLSv1.3 (OUT), TLS handshake, Finished (20):
  • SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
  • ALPN, server accepted to use h2
  • Server certificate:
  • subject: C=US; ST=California; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
  • start date: Jun 18 00:00:00 2021 GMT
  • expire date: Jun 17 23:59:59 2022 GMT
  • issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
  • SSL certificate verify ok.
  • Using HTTP2, server supports multi-use
  • Connection state changed (HTTP/2 confirmed)
  • Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
  • Using Stream ID: 1 (easy handle 0x555760e45f90)

HEAD / HTTP/2
Host: seedboxabuser.org
User-Agent: curl/7.64.0
Accept: /

<

Yes you did but only for / add * after it

You wont always be routed to the nearest PoP, read this: Peering - Why don't I reach the closest datacenter to me?

Your rule should be *seedboxabuser.org/* if you want to cache everything and include www. subdomain. Right now you cache 1 rar file IF using www. OR the index page with no www.

https://www.cloudflare.com/en-gb/learning/cdn/glossary/anycast-network/

so it’s not caching my site at any PoP, why?

I think you need to read up little bit more before asking question, you can simply test caching and see also statistics, what made you think is not caching ?

Additionally It is not caching now because your site is not proxied through Cloudflare

this demo video is from cloudflare website (https://www.cloudflare.com/en-ca/teams/access/) and download/stream link for this video https://videodelivery.net/62017d584784e245f73bf980d67cbf99/manifest/video.mpd?parentOrigin=https%3A%2F%2Fwww.cloudflare.com&selected_id=85721449 )

when download/stream this video it’s IP’s and domain’s (DOWNLOADING SPEED FOR ME IS 250-300KBps)
https://www.glasswire.com/host/104.17.23.75
https://www.glasswire.com/host/stats.videodelivery.net
as you can see for the IP’s location it’s saying (San Francisco, CA, United States of America - CLOUDFLARENET,Cloudflare, Inc. (CLOUD14))
for other CDN services like Akamai, Limeligh, etc this what an IP’s and Domain’s location looks like for download/stream something using glasswire
this for a youtube video that cached locally (downloading speed for me 1-2MBps)
https://www.glasswire.com/host/37.239.253.179
https://www.glasswire.com/host/r8.sn-x5guiapo3uxax-ow4d.googlevideo.com
and this for a video from a website, cached locally in limelight PoP (downloading speed 1MBps for me)
https://www.glasswire.com/host/37.238.255.231
https://www.glasswire.com/host/m-content-viki.s.llnwi.net
so I can find anything that use Cloudflare CDN,

i can’t find anything that cached in any of Cloudflare PoPs.

I think you may have something misconfigured I have tested this on my site and cache works fine
www.mpabian.co.uk/video/file_example_MP4_1920_18MG.mp4

additionally Your site does not seem to go through Cloudflare any more as mentioned above

;; ANSWER SECTION:
seedboxabuser.org. 5 IN A 92.249.44.190

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.4 <<>> seedboxabuser.org NS
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20976
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 5

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1500
;; QUESTION SECTION:
;seedboxabuser.org. IN NS

;; ANSWER SECTION:
seedboxabuser.org. 86400 IN NS ns1.dns-parking.com.
seedboxabuser.org. 86400 IN NS ns2.dns-parking.com.

Reconfigure this correctly and show caching rules and /cdn-cgi/trace or even HAR file

Regards,
Miroslaw Pabian

what do you think?