Mobile app version of vmapp.org
Login or Join
Rivera981

: How to cache on CloudFlare images that are served to client as JSON? I am using a gallery on my website that gets list of images from a JSON sent by a php script. So, the javascript gallery

@Rivera981

Posted in: #Cache #Cdn #Cloudflare

I am using a gallery on my website that gets list of images from a JSON sent by a php script. So, the javascript gallery calls PHP backend and it replies with complex JSON where images are specified as object fields. These fields not necessarily include full URLs, merely a path to needed images.

I'd like to use Cloudflare and want these images to be cached there.

How I could learn whether these are cached or not, and make sure that these would be cached and not considered some sort of dynamic content?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Rivera981

1 Comments

Sorted by latest first Latest Oldest Best

 

@LarsenBagley505

It is important to note that we only cache certain file extensions by default.

You can, however, use PageRules to extend CloudFlare's caching.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme