JSON Caching Page Rule Suddenly Stopped Working

Hi,

We have a page rule for caching .json files. It was working fine but suddenly stopped working. There was no change in origin response headers. No other page rule matches the pattern.

I have attached screenshot of page rule (note: I have replaced my real domain name)

Here are origin response headers:

< HTTP/1.1 200 OK
< Server: nginx
< Date: Fri, 09 Jul 2021 04:34:46 GMT
< Content-Type: application/json
< Content-Length: 956
< Connection: keep-alive
< Vary: Accept-Encoding
< ETag: "3bc-5c5de3e0cef80"
< Accept-Ranges: bytes
< Referrer-Policy: no-referrer-when-downgrade
< Pragma: public
< Cache-Control: max-age=31536000, public
< X-Powered-By: W3 Total Cache/2.1.5

And here are the response headers in the browser:

cache-control: public, max-age=31536000
cf-apo-via: origin,nohtml
cf-cache-status: MISS
cf-ray: 66bed63e3caa19f5-SIN
content-encoding: br
content-type: application/json
date: Fri, 09 Jul 2021 04:33:55 GMT
etag: W/"3bc-5c504ecd813bb"
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
nel: {"report_to":"cf-nel","max_age":604800}
pragma: public
referrer-policy: no-referrer-when-downgrade
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v2?s=cAccqklMvrLkZEzNjYooDEayw%2BHiPPRs3AxCqzwe69Q4G5YGIYFX3oLx3ixEQAk6U6wWkWmSp0pjOPLSsKJr5O39zQKwiRPj%2B04DBivvaw2j1%2FXpjw9Z4JhYc4mO"}],"group":"cf-nel","max_age":604800}
server: cloudflare
vary: Accept-Encoding
x-cache: HIT

Was this the first request?
If yes, please try to call in twice in a row and check the header then.

No, it’s not the first request. Around 140k hits in the last 24 hours missed the cache.

Can you provide us with a test URL?

1 Like

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