veil
IImmich
•Created by veil on 5/1/2025 in #help-desk-support
(Solved) Immich behind reverse proxy very slow initial load in browser or app
Ok, problem solved. Below you can see my summary:
Immich was extremely slow or failed to load initially in any web browsers, both in normal and in incognito mode. Many static asset requests (/_app/immutable/...) failed with 522 errors or returned the wrong Content-Type (text/html instead of text/javascript), breaking the frontend.
Root Causes Identified & Fixed:
- Cloudflare proxy (orange cloud) was enabled, which interfered with streaming JS modules and chunked asset delivery. This caused intermittent 522 and CORS-related failures.
- Stale in-memory browser cache in private sessions preserved bad HTML responses as JS, compounding errors.
Solutions Applied:
- Switched Cloudflare DNS to DNS-only (grey cloud) — resolved all CDN-induced issues.
- Increased Caddy proxy timeouts to ensure larger responses weren't prematurely cut off (maybe it is not necessary at all)
12 replies
IImmich
•Created by veil on 5/1/2025 in #help-desk-support
(Solved) Immich behind reverse proxy very slow initial load in browser or app
Thanks for the hint! My problem is different. For me the timeline is ok. Once the initial load has finished, everything is smooth. I'll try to move my Caddy from container to the host PC.
12 replies
IImmich
•Created by veil on 5/1/2025 in #help-desk-support
(Solved) Immich behind reverse proxy very slow initial load in browser or app
Hi! Yes, you're right, I just want to hear some hints. Internet speed is 500/300 Mbit/s so this is clearly not an issue. Long time ago when Nginx was installed on my host PC everyrhing worked fine. Since the reverse proxy is in a container, I experience speed issues. I know It's not Immich issue but maybe Immich has some special needs if It's exposed to the internet via reverse proxy.
12 replies
IImmich
•Created by ROODAY on 4/3/2025 in #help-desk-support
Large file doesn't download from Immich
I had similar issues with NPM and NPM Plus. Then I switched to Caddy and have 0 issues with Immich and other stacks.
27 replies