Can I include Content-Length in the response header? #8941
Unanswered
lucashan13
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, first of all, thank you for creating such an awesome framework.
My question is,
I currently have cloudfront set up on the front end of my remix server, and I need the Content-Length header to compress HTML with gzip, br via content-encoding in cloudfront.
I'm using
renderToPipeableStream
inentry.server.tsx
, and when I replace that function withrenderToString
to return the HTML, the JavaScript doesn't work in the browser, which is why I'm suspecting a hydration error (I think it's because I'm not waiting for the Suspense component, but I'm not sure).The
renderToPipeableStream
is a nice feature, but since my service uses CDN cache, it would be more efficient for the HTML to be compressed. do you have any suggestions?My remix app has the following configuration:
Beta Was this translation helpful? Give feedback.
All reactions