Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

CloudFlare page rule to redirect *.html links to $1/ breaks db and codec so another rules was added for those #1220

Open
davidmurdoch opened this issue Apr 13, 2022 · 2 comments

Comments

@davidmurdoch
Copy link
Member

davidmurdoch commented Apr 13, 2022

YNC: https://github.com/ConsenSys/dx-team/issues/1203

Desc:
The solution to opt out doesn't scale, so we'll need to figure out a better solution. Perhaps a CloudFlare worker that can check the origin server (and cache the results at the edge) before redirecting will be the best long term solution, as @jlazoff previously suggested.

@davidmurdoch
Copy link
Member Author

Current rules:

image

The first two don't do anything except match ./db and ./codec; this prevents the other rules from running. This isn't a great solution. :-)

@jlazoff
Copy link
Contributor

jlazoff commented Apr 13, 2022

Current rules:

image

The first two don't do anything except match ./db and ./codec; this prevents the other rules from running. This isn't a great solution. :-)

Looping in @davidnguyen88 and @cuonglt-ync , who have a lot of experience writing Cloudflare Workers, which is a great solution for this issue...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants