-
Hi everyone! I love this package! 😍 I'm using it for delivering a WASM file as compressed. Showing a loading progress for such case is great, but since the As per this discussion:
Unless there is no other option to have this happenning using this package, I guess I should handle that specific request (to that WASM file) in another wrapper, on top of the Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@dxps You would need to buffer the output. As a general thing that is rather bad approach - it will reduce Time-To-First-Byte and you risk running the server out of memory. You could do an upstream HTTP wrapper that buffers writes and writes content-length before writing any data. I wouldn't be opposed to adding it as a separate wrapper for including in gzhttp. |
Beta Was this translation helpful? Give feedback.
The gzhttp is for dynamic compression. If it is static content, you really should just do it yourself - that will avoid having to compress on every download - which sounds like what you really want.