Let’s say I have some content that I want to cache at
I know that I can add a DNS entry so that it is on my domain. So I would also be able to find the image at
Is it also possible to change the path so that it could be at
I am new to cloudflare, so apologies if this seems obvious.
Cloudflare will only cache content for domains in your Cloudflare account. So if I have a domain: example.com, but want to use myimages.com, the myimages domain also has to be in my Cloudflare account.
Cloudflare is fairly transparent, in that images normally served from your website continue to use the same URL, but get cached in transit. It’s not a typical CDN where you push your images off to some other (sub)domain.
Ah, okay that was the piece of information that I was missing. I’m trying to host my assets from github, so I cannot set up cacheing on
Does that mean that I can create a worker to do this for me?
- A worker registed on route:
- That fetches from
Then the result from my worker can be cached as it is on my domain?
Yes, there’s a Workers recipe for pulling content from an external source.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.