Why isn't my json file cached?

I have a few json files that i want to cache but i can’t get it to work.

For example this one.

https://alternativeto.net/_next/data/tf4DYIipWMSVGLe_FhpGV/category/social.json

But it seems CF returns DYNAMIC no matter what rules i test. The current rule is.

*alternativeto.net/_next/data/*/category/*.json
Browser Cache TTL: 30 minutes, Always Online: Off, Cache Level: Cache Everything, Edge Cache TTL: an hour

Anyone know why? Let me know if you need more info.

/Ola

I’m getting a 404 for that URL.

Oh, I’ve deployed new code.

It’s requested from this page and changes with each deployment.

Requests to https://alternativeto.net/_next/data/VKJcyN8S4jkJU5Kl6aGcn/category/developer-tools.json are served by Worker, so page rules are not applied to it. If you want to cache this content, please cache it on the Workers level.

2 Likes

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