23 days ago
Railway has introduced a cache on the metal side that breaks my application as of today, Feb 20th 2026.
- Request goes in with .well-known in the path
- Railway edge returns 301 to the same URL
- Container never sees the request (not in HTTP logs)
- Same container responds correctly via TCP proxy
Something in the Railway edge stack is intercepting .well-known paths.
This has pretty much broken my service. I can see clearly in the logs that .well-known is never hitting. All HTTP requests containing .well-known in the path return a 301 Moved Permanently redirect to the same URL, creating an infinite redirect loop. These requests never reach the container!!
$ curl -sI "https://logto-auth-production-021b.up.railway.app/oidc/.well-known/openid-configuration"
HTTP/2 301
location: https://logto-auth-production-021b.up.railway.app/oidc/.well-known/openid-configuration # <-- redirects to itself
server: railway-edge # <-- only edge headers, no container headers
But when I connect via TCP directly...
$ curl -sI "https://logto-auth-production-021b.up.railway.app/oidc/jwks"
HTTP/2 200
content-type: application/jwk-set+json; charset=utf-8
logto-core-request-id: bQcX0jntSgVRWLeF # <-- container headers present
This breaks OIDC discovery, which is required for:
- OAuth2 client initialization
- JWT token validation
- Any OIDC-compliant service connecting to this provider
Environment
- Region: us-east4
- Edge responses include: x-served-by: cache-yyz4574-YYZ, via: 1.1 varnish
- This issue started recently with no changes to the service configuration
4 Replies
23 days ago
Hello,
We have temporarily pulled our Fastly config until we work out some issues with it, so thank you for the report.
Status changed to Awaiting User Response Railway • 23 days ago
23 days ago
Hi Brody,
Thanks for the reply! Just to clarify, this stopped shortly after your message but has resumed as of 10:00AM today.
Generally, it would be great if we could opt out of this cache (e.g. by an ENV var) as we are completely offline for the duration of this issue.
We may have to swap providers, which sucks, because Railway is perfect for us in every other way.
But we've been down for the better part of 6h now. No changes on our end in the last week.
Status changed to Awaiting Railway Response Railway • 23 days ago
Status changed to Awaiting User Response Railway • 23 days ago
23 days ago
Thank you!! Seriously, this platform is fantastic. Genuinely an insane value that you guys offer, so I'm very happy to hear this is resolved!
Status changed to Awaiting Railway Response Railway • 23 days ago
Status changed to Solved isaackogan • 23 days ago