Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force size to be a minimum... #171

Closed
joetidee opened this issue May 19, 2020 · 2 comments
Closed

Force size to be a minimum... #171

joetidee opened this issue May 19, 2020 · 2 comments
Labels

Comments

@joetidee
Copy link

We currently use this library on a server that, when asked to render the page, will send down an initial response (560bytes) followed by a node stream of the rest of the page once the page has been generated and is ready to send.
We use a proxy server and this has a minimum buffer size of 8kb. When it reaches this size it will flush the contents to the browser. Therefore, that first chunk of data needs to reach the 8kb threshold in order for the proxy to flush it. Is there a way pad this initial response to the threshold size?

@dougwilson
Copy link
Contributor

There is no such option in this module. I don't think the Node.js gzip API itself provides that possibility, though, which would be necessary to add such to this module.

@mastermatt
Copy link

@dougwilson as I come across "question" issues that seem to be answered, my plan is to close them.
If you see anything close that could/should have more discussion, reopen the issue and I'll adjust according.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants