Why is the requested resource not cahced?

Any idea why this resource is marked as DYNAMIC instead of a cache HIT ?
Resource URL:
https://images.oncehubassets.com/themeso/_1667485414370_OTA3MjExOTIyMDY=_logo002jpg

Response headers:

HTTP/1.1 200 OK
Date: Mon, 18 Dec 2023 05:40:55 GMT
Content-Type: image/avif
Content-Length: 3507
Connection: keep-alive
CF-Ray: 837512e7eacd02d7-CDG
CF-Cache-Status: DYNAMIC
Cache-Control: max-age=31536000
ETag: "cfuhkqmXg2Q92WoF1PjyTQgOjV1gWqs-rDoNB_ezzVDQ:93ef6e2c4450aa1774c6f3885bbf2231"
Last-Modified: Thu, 03 Nov 2022 14:23:35 GMT
Vary: Accept
cf-bgj: imgq:85,h2pri
cf-resized: internal=ok/h q=0 n=8+0 c=0+38 v=2023.9.8 l=3507
content-security-policy: default-src 'none'; navigate-to 'none'; form-action 'none'
x-content-type-options: nosniff
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=CpD4Pv41feEaiByLTtYCj3J5f9bKwinEaJGFZ9v1j3PpuRk0eIWOguFtjYoFp2ziP9fToJp7cXbGGLlE76eb3Arj9N%2FK2YNEAaR4x0SXRqliTozRffwCt1ItKELTbpgt4hcNdIunn5P%2BYQ%3D%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
alt-svc: h3=":443"; ma=86400

I suspect it has to do something with the filename not having a proper . in the extension.

Compared to another file:
https://images.oncehubassets.com/themeso/_1681047891007_OTA5OTE1MDQ3OA==_oncehubtheme33.png?quality=80

The response is a cache HIT:

HTTP/1.1 200 OK
Date: Mon, 18 Dec 2023 06:42:32 GMT
Content-Type: image/avif
Content-Length: 12347
Connection: keep-alive
CF-Ray: 83756d280ed704aa-CDG
CF-Cache-Status: HIT
Accept-Ranges: bytes
Cache-Control: max-age=31536000
ETag: "cfcL27HKNkt-MYpkMWpWj1WWbQQZp0weY8Ffr-CYcaDQ:d7f6486929198d24b8c5dde8c19a7e04"
Last-Modified: Sun, 09 Apr 2023 13:44:52 GMT
Vary: Accept, Accept-Encoding
cf-bgj: imgq:80,h2pri
cf-resized: internal=ok/m q=0 n=89+734 c=0+0 v=2023.9.8 l=12347
content-security-policy: default-src 'none'; navigate-to 'none'; form-action 'none'
x-content-type-options: nosniff
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=%2FDsi1xWneR4IhDaZqNJADhG0cO6kJWgcTjYyy6C9RkH612ZGCMpTKNdkMaIA7w6zvVugKy4q%2FKdJEavzGT%2FJetezArM2dtXgtLHk9zkrTSXrCqLVpFBRbAAMTOQ7lNZRIetU7LojO0pczA%3D%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
alt-svc: h3=":443"; ma=86400

Only difference I see between them is the Vary header, and the extension

See…

Adjust behaviour with cache rules…
https://dash.cloudflare.com/?to=/:account/:zone/caching/cache-rules

1 Like

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