301 Redirect Loop
I have a static website deployed on Cloudflare Pages that has been running without issues for months. About an hour ago, one of my stylesheets started returning a 301 redirect loop to itself, breaking the site’s styling.
I just use pages deploy of a static folder together with this _redirects file:
'/* /index.html 200'
What could be the issue for that? http -> https redirect? but why did it work for months without an issue?
1 Reply
Okay I could replicate that issue. if i purge the cache and then
curl --head http://abc.com/styles-IGY6YNIY.css
cloudflare returns a HTTP/2 301 to https://abc.com/styles-IGY6YNIY.css and caches this response. If i then curl --head https://abc.com/styles-IGY6YNIY.css
I get a HTTP/2 301 to https://abc.com/styles-IGY6YNIY.css as well...
Always Use HTTPS is disabled and Automatic HTTPS Rewrites also. Why do I still get a 301 from http to https?