Fastest practice to 410 a regex URL pattern not supported by worker routes?
I have a URL pattern for which I want to return the fastest possible static 410 response (to remove them from the Google index). However, the pattern can not be expressed with the limited pattern support for Cloudflare Workers.
What is the best way to configure this in Cloudflare? I could think of putting a rewrite rule in place that forwards to the same /410 page that then delivers the 410 response from the edge without ever hitting the origin.
Is that the best approach though?
0 Replies