Cloudflare and Cloudinary
Hi,
I am using Cloudinary to speed up my website http://www.dermatologodf.com
How can i set up Cloudinary in Cloudflare? Do I need to use a CNAME? How can I integrate your service with Cloudflare?
I am using
- W3 Super Cache and it asks a CNAME for the CDN used like http://cd1.dermatologodf.com
Look forward to your response
Many thanks in advance!
Ceci
-
Images and transformed images generated and delivered by Cloudinary are already highly optimized, cached the delivered through a fast worldwide CDN (Akamai and CloudFront). Therefore, while CloudFlare is great for optimizing your website, you don't have an advantage of passing your Cloudinary-originated images through CloudFlare, and you will probably lose part of the advantages of Cloudinary's high-end image delivery solutions.
Therefore, the best way is to make sure that CloudFlare simply passes Cloudinary image URLs as-is. You should be able to do that by modifying CloudFlare's cache policies and defining custom Page Rules ( http://blog.cloudflare.com/introducing-pagerules-fine-grained-feature-co), this way you use Cloudflare for you site but Cloudinary for your images.
0 -
Thanks Itay,
I read the link but I want to be sure when setting those rules... let-s say one of my images is here : http://dermatologodf.com/wp-content/uploads/2014/04/acne.jpg
Should I state the rule like http://dermatologodf.com/wp-content/uploads/* ??
Looking forward to your reply
Ceci
0 -
Hi Ceci,
Note that images under "http://dermatologodf.com/wp-content/uploads/*" are your WordPress'a Media library items.
Cloudinary images' URLs are under "http://res.cloudinary.com/*".
You should set a rule which passes "http://res.cloudinary.com/*" URLs as is (in other words, bypass Cloudflare for such URLs).
0 -
Hi just to follow up on this, Itay I tried your suggestion to add https://res.cloudinary.com/* as a page rule but CloudFlare threw an error saying: "ERROR Your URL should reference the domain 'lastmingear.com' in some way."
Any thoughts on how else to do this?
Thanks!
0 -
Hi James,
Just checking, can you please try to remove the rule and see if everything works for you?
Thanks0 -
Hi Ceci,
I wonder if your issue is solved? I have the same problem that I cannot solve.
Thanks,
Vladimir0 -
Hi Vladimir,
Can you please share some more information regarding the issue you encountered with? If privacy is an issue, please feel free to open a support ticket.0
Post is closed for comments.
Comments
7 comments