While are these JSON files not caching

Hi,

I setup 2 page rule as follows:

*im-a-puzzle.com/gallery/gallery.json
Always Online: On, Cache Level: No Query String, Edge Cache TTL: 2 hours

im-a-puzzle.com/service/cache/
Always Online: On, Cache Level: No Query String, Edge Cache TTL: 2 hours

But neither of both URLs get a cache HIT. Always DYNAMIC. Any help is appreciated.

https://static.im-a-puzzle.com/gallery/gallery.json
https://static.im-a-puzzle.com/service/cache/getUserExtGallery.json

Hello!

I’m afraid Cloudflare doesn’t cache .json file extension by default (Understanding Cloudflare's CDN – Cloudflare Help Center)

To cache these files the rule would have to be set to “Cache Everything” (Customizing Cloudflare's cache – Cloudflare Help Center)

1 Like

Thanks. It worked. Probably the Page Rules documentation should be enhanced. It is not clear that setting No Query won’t cache json files just because json files are not cached by default.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.