we could not use cloudflare proxy (only dns is possible) for the following reason:
target is cloudfront backed by s3 bucket with http status code redirection.
If i enable proxy, that redirection mechanism does not work. What i need is to move that redirection rule to cloudflare, but page rule does not show such option.
- resource does not exists with 301/307 double redirection: if object does not exist, forward to api gateway, create it and redirect back
- 404 Fallback: we have public profile for each user (about 40 million), if user does not exist, redirect to a different domain. This also also done via 404 redirection on the s3 bucket.