Skip to main content

Comments

7 comments

  • Itay Taragano

    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
  • Ceci Derma

    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
  • Itay Taragano

    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
  • James Dong

    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
  • Itay Taragano

    Hi James,

    Just checking, can you please try to remove the rule and see if everything works for you?
    Thanks

    0
  • Vladimir Trajkovic

    Hi Ceci,
    I wonder if your issue is solved? I have the same problem that I cannot solve.
    Thanks,
    Vladimir

    0
  • Itay Taragano

    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.