Intermittent 301 redirect to the exact same URL on static assets (Cloudflare Pages)
Hi team,
I am facing intermittent 301 Moved Permanently redirects on static assets (e.g. /bundle.min.js) where the Location header points to the exact same URL that was requested.
Example (real headers observed with curl -I -L):
GET https://example.com/bundle.min.js
< HTTP/2 301
< location: https://example.com/bundle.min.js ← identical URL
This creates an infinite redirect loop in browsers (“Exceeded maximum number of redirects”) and breaks asset loading for some visitors.
Any official guidance or setting to prevent Cloudflare Pages from ever issuing a 301 to the identical URL would be greatly appreciated.
Thank you!
I am facing intermittent 301 Moved Permanently redirects on static assets (e.g. /bundle.min.js) where the Location header points to the exact same URL that was requested.
Example (real headers observed with curl -I -L):
GET https://example.com/bundle.min.js
< HTTP/2 301
< location: https://example.com/bundle.min.js ← identical URL
This creates an infinite redirect loop in browsers (“Exceeded maximum number of redirects”) and breaks asset loading for some visitors.
Any official guidance or setting to prevent Cloudflare Pages from ever issuing a 301 to the identical URL would be greatly appreciated.
Thank you!