If Streaming or Deferring Loader Data is not working, and you're using an Nginx proxy this might be of interest to you #7965
wouterds
started this conversation in
Show and tell / tips
Replies: 2 comments
-
do you notice that on the first time, even tho Remix does stream content normally, browser have to wait until the document request is finished before rendering? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I learned the hard way that apparently deferred loading of data through streaming does not work if your app is running behind a very basic nginx proxy with default settings.
Instead of getting a quick response while the rest of the data was streamed I noticed I was getting hit with a very long TTFB.
After debugging a little and setting up a simple reproducible example I found out it could be fixed by setting
proxy_buffering off
in my nginx config (wouterds/remix-streaming@bd2fa6d). As the name implies this setting buffers the upstream response and waits until it is ready before responding.This fixed the issue and now we can make use of Remix streaming behind an nginx proxy.
Beta Was this translation helpful? Give feedback.
All reactions