Redirect rules are firing before workers, right?
Hi there,
Can I safely remove
"html_handling": "force-trailing-slash"
from a wrangler.jsonc
if I configured redirect rule that forces trailing slashes?
My redirect rule:
Then dynamic redirect to concat(http.request.uri.path, "/")
with 301 status code2 Replies
I can tell you that Redirect Rules do run before Workers. (In the dashboard while on the page Rules -> Overview there's a button called "Traffic sequence showing how a request travels through the Cloudflare network)
As for the rule you posted itself I can't say if it's safe to remove the field from the wrangler file.
Thank you very much✨
Seems like it is working as intended without wrangler’s param.