Web
nginx as a Reverse Proxy: Headers, WebSockets and Timeouts
What the backend really receives behind nginx: proxy_pass URI rewriting, Host and X-Forwarded headers, WebSocket upgrades, 504s from timeouts, and streaming.
Topic
What the backend really receives behind nginx: proxy_pass URI rewriting, Host and X-Forwarded headers, WebSocket upgrades, 504s from timeouts, and streaming.
Not first match, not longest match, but a mix of both. A test config where every location names itself shows exactly how nginx picks one, and where it surprises.
no-cache does not mean do not cache. A hands-on look at Cache-Control, ETags and 304 responses with a tiny Node server, plus how a CDN treats them.