Radon Rosborough
CDCloudflare Developers
•Created by Radon Rosborough on 4/13/2024 in #pages-help
Every path serves index.html
Well, that is a different default than I am used to, but I cannot say it was not documented. If you were deploying an SPA, then the 200 response would of course make sense.
6 replies
CDCloudflare Developers
•Created by Radon Rosborough on 4/13/2024 in #pages-help
Every path serves index.html
Aha. I see: https://developers.cloudflare.com/pages/configuration/serving-pages/#single-page-application-spa-rendering
6 replies
CDCloudflare Developers
•Created by Radon Rosborough on 4/13/2024 in #pages-help
Every path serves index.html
Now, how do I mark this as solved...?
6 replies
CDCloudflare Developers
•Created by Radon Rosborough on 4/13/2024 in #pages-help
Every path serves index.html
Well, I guess all I needed was a rubber-duck here. It seems that Cloudflare always returns the index page when a page isn't found. That seems like a bug to me... at the very least, it should obviously return that with a 404 status code, not 200. But, all my prior testing of valid paths was apparently erroneous, when I request https://mothers-day-2024.pages.dev/index-v1.5.2.css it works fine. I could swear I did that before, but I guess not.
6 replies