Oli
CDCloudflare Developers
•Created by Oli on 1/25/2025 in #general-help
Cache homepage (on free plan)
My homepage is a static html file that I only update every few months or so, my website has been getting ddosed quite regularly (at least once every 2 days) but after looking at the logs I realise most ddos attacks just target the / route. I've been trying to cache it for 2 hours (so that cloudflare only fetches it once every 2 hours) but no matter how I setup the cache rules, it still seems to hit my origin server.
Here are the settings I've enabled.
* Custom filter expression -
(http.request.full_uri eq "/")
* Edge TTL - 2 hours
* Browser TTL - 2 hours
* Cache key - Ignore query string ✅
But I can see from my origin server that it's still being called every time someone goes on the homepage, any help would be greatly appreciated and if this isn't possible on the free plan, please let me know.5 replies