Oli
CDCloudflare Developers
•Created by Oli on 1/25/2025 in #general-help
Cache homepage (on free plan)
For some reason the web framework I was doing was adding automatic cache headers, this has now been fixed and by using teired cache it only fetches origin once if cache has expired
5 replies
CDCloudflare Developers
•Created by Oli on 1/25/2025 in #general-help
Cache homepage (on free plan)
I've figured out the issue, its because some users are passing queries (even though the homepage expects none, maybe crawler bots, etc?) but now I've found another one. If I pass any query, with Ignore query string enabled or not, instead of retrieving the cached version, it returns 2
cache-control
headers, 1 of them is my normal header returned from the origin server but then I have another with no-cache
and CF-Cache-Status
is EXPIRED
with a Last-Modified
date that is over a month old (even though its showing the current version). I see that it's actually calling the webserver but it's not updating the cache, any ideas?5 replies
CDCloudflare Developers
•Created by Oli on 1/25/2025 in #general-help
Cache homepage (on free plan)
Also, with this rule, despite it supposed to cache for 2 hours, it does stop ALL requests going to origin but there is still more than 1, is there anyway to fix this or is this just default behaviour?
5 replies
CDCloudflare Developers
•Created by Oli on 1/25/2025 in #general-help
Cache homepage (on free plan)
Just to test, I the exact same cache rule to apply to all requests, and it then cached the homepage fine, so I'm guessing it's an issue with the custom filter expression?
5 replies