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.
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