Skip to content
Discussion options

You must be logged in to vote

The issue is caused by a mix of Svelte and Nginx : The SvelteKit frontend server responds with larger headers on refresh, which the default nginx/NPM configuration cannot handle. This is shown when looking at the error log:
2025/11/23 23:06:47 [error] 8126#8126: *4407020 upstream sent too big header while reading response header from upstream, client: X.X.X.X, server: my.server.tld, request: "GET /locations HTTP/2.0", upstream: "http://Y.Y.Y.Y:3000/locations", host: "my.server.tld"

Solution is simple when you know what the true issue is, you just need to add the following three lines to the advanced tab of your reverse host:

proxy_busy_buffers_size   512k;
proxy_buffers   4 512k;
proxy_bu…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Jacob-Lasky
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants