- This topic is empty.
-
AuthorPosts
-
May 22, 2024 at 8:40 pm #25008
Laura
GuestLast week they put a notice that Page Rules is being deprecated. Now everyone is supposed to use the other rules like Cache Rules, Configuration Rules, Redirection Rules. But the documentation totally sucks. And the regex/etc is totally different from Page Rules.
May 23, 2024 at 3:43 am #25009Frances
GuestI noticed that, when will page rules disappear?
May 23, 2024 at 7:34 am #25012Douglas
Guesthttps://developers.cloudflare.com/rules/page-rules/
Page Rules are deprecated. You should consider alternative Rules options due to their enhanced configurability. Refer to the migration guide for details.
no date given.
May 23, 2024 at 7:37 am #25013Pamela
GuestThey are probably aware that it would break half the internet if they hurry to cancel the Page Rules functionality so they are just trying to push everyone to stop using it
May 23, 2024 at 8:17 am #25022May 23, 2024 at 8:18 am #25023Marie
GuestYah, idk seems sus.
Is this really improving the UI or some plot to make it more confusing lol
May 24, 2024 at 5:26 am #25029Aaron
GuestAnother thing I noticed is the new “Cache Rules” no longer support “Cache Everything” setting like the old Page Rules did, which sucks. Because it eliminated cookies from requests.
May 25, 2024 at 2:15 am #25042Janet
Guest🥲🥲
June 19, 2024 at 10:10 pm #25335Patrick
Guestdid they reverse course? I no longer see “Deprecated” notice on Page Rules?
June 22, 2024 at 1:17 am #25362Andrew
GuestIf you’re looking for an alternative, check out Cloudflare’s new feature: https://developers.cloudflare.com/rules/snippets.
It lets you control your cache easily.
Try this snippet:
`javascript
const response = await fetch(request, {
cf: {
cacheEverything: true,
cacheKey: request.url,
cacheTtlByStatus: {
“200-299”: 604800, // Cache successful responses for 7 days
“404”: 1, // Cache not found responses for 1 second
“500-599”: 0 // Do not cache server errors
}
}
});
`Using this method doesn’t add any extra charges. Workers could do the same, but they come with a per-request fee, which adds up.
Snippets aren’t free, but a basic paid plan gives you 10. One advanced snippet can replace multiple page-rules, making it a cost-effective solution.
However, this isn’t a solution if you were utilizing the free plan for many domains.
– Chad 😉
June 22, 2024 at 9:23 am #25363Ruth
GuestIs this really improving the UI or some plot to make it more confusing lol
probably more a plot to make more money. because they are saying the “wildcard” redirect rule is now only available on paid plans, which is some greedy a*****e s**t to do after half the internet has been using Cloudflare for years already…
https://community.cloudflare.com/t/static-vs-dynamic-redirects/584719/5
“Redirect Rules/Ruleset Engine does not support wildcard characters like that.
There is regex/matches support, but only for Business Plans or higher.”July 5, 2024 at 3:24 pm #25453Matthew
Guestdid they reverse course? I no longer see “Deprecated” notice on Page Rules?
seems like they are keeping it now.
-
AuthorPosts