Hello,
I would like to ask if the static content of my sub domain is cached by default, or if i should create a page rule to cache it.
For example lets say that my main domain is example.com and i have a subdomain hello.example.com where in this server the file structure is like this hello.example.com/img/logo.png , hello.example.com/css/style.css etc
Do these static files cached automatically, or i should create a page rule like hello.example.com/img/ * & hello.example.com/css/ * Cache Level = Cache Everything ?
If it’s proxied by Cloudflare ( in DNS), then static files will cache, just as they do on the parent domain.
Thank you for your reply, however i don’t think that this is happening be default. I created page rules to cache the sub domains i mentioned in the beginning (home.example.com/img* - Cache Level = Cache Everything) and the speed increased at least by 40-50%!
One of my sites is a WordPress multi-site using subdomains. Their images are cached with no special page rules.
If you post some actual URLs, we can check them for caching.
It’s caching. First visit was a MISS before Cloudflare cached it at the local datacenter. Second time was a HIT.
system
Closed
May 2, 2020, 9:35am
7
This topic was automatically closed after 30 days. New replies are no longer allowed.