Hard Refresh (Ctrl+F5) Required After Session Expiry with Authenticated Reverse Proxy #7974
-
What happened?When using an authenticating reverse proxy (e.g., Entra App Proxy, Cloudflare Access), reverse proxy session recovery has regressed. When the proxy's session expires, API calls from the LibreChat client fail with CORS errors, as the proxy attempts to redirect the XHR requests to the login page. (Although this may not be an official feature, it was in a usable state for the last year) The Problem The Change:
Impact: Users are stuck with an "Internal Server Error" dialog and cannot easily recover. Might the cause be a change in caching headers for Version InformationVersion: ghcr.io/danny-avila/librechat-dev:0103b4b08a6ee1339569d7d4af16beaaac0228ed Steps to Reproduce
What browsers are you seeing the problem on?Chrome, Microsoft Edge Relevant log outputNo errors in backend logs as the HTTP requests do not reach the backend. ScreenshotsCode of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Certainly not the case here You can set what these fields are via environment variables, were you utilizing these environment variables? Lines 123 to 135 in 0103b4b It looks like they changed from what they were before and forgot to be updated in the docs (will do that asap): possibly related: https://www.librechat.ai/docs/configuration/dotenv#static-file-handling Other than pointing to you to these configurations, I'm not sure how to help you troubleshoot further, let me know if that resolves the issue for you. |
Beta Was this translation helpful? Give feedback.
-
@danny-avila, I by the way do think this is a bug. This is the behaviour I observed: Also, disabling the cache in librechat.yaml (applied at the server via cache headers) doesnt apply if the serviceworker caches all those resources (and ignores those headers). I dont think this behaviour is limited to my Entra reverse proxy setup. Havent tested to be sure though. |
Beta Was this translation helpful? Give feedback.
I think I've found the culprit, this fixed it for me:
In my search for this one, Roo code on Anthropic LLM, suggested an alternative f…