Doesn't seem to perform compression when running on Windows.
See original GitHub issueWe have a really odd issue. We’re using the standard configuration, and making requests to the server, everything looks correct even up to the point we flush the request, but for some reason, the output is not compressed and the headers are missing on Windows.
Oddly, if we run the exact same code on Linux, the output is compressed.
We’re not using a proxy or anything.
Here’s our output of getHeaders at the end of our response:
content-encoding:"gzip"
content-type:"application/json; charset=utf-8"
etag:"W/"1e928-ejrkE6/bCZuNbsnF8HFNVEAq/EU""
vary:"Accept-Encoding"
Here’s what the browser is showing (and no, the size is not showing the compressed size):
You can see the eTag is the same.
No idea what’s going on here - any help would be appreciated.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Display Problems Playing Video Clips in Windows
Removing and Reinstalling Video Compression · Click the Start button, point to Settings, and then click · Double-click Add/Remove Programs. · Click the...
Read more >Windows 10 Automatically Compressing FIX - YouTube
Windows 10 Automatically Compressing FIXYour computer may be compressing files if its hard disk is running out of space (especially, ...
Read more >Why doesn't ZIP Compression compress anything? - Super User
A 398MB directory was only compressed to 393MB using 7Z and Normal ZIP compression. Is this normal? If so, why do people continue...
Read more >High Memory and CPU Usage in Windows 10 and 11
By using process memory compression, you can keep more processes in ... the compressed memory process works fine and doesn't require any action...
Read more >7 Ways to Fix the “Compressed (Zipped) Folder Is Invalid ...
1. Reinstall the File Compression Tool · 2. Restart the Windows File Explorer · 3. Run the File and Folder Troubleshooter · 4....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Well, I would suggest the next step is to install Wireshark and get a packet capture of the packets coming from the Node.js server to verify if that is compressed or not. If it is, you have something tampering with your traffic somewhere.
Are you sure you don’t have some sort of WAF installed on the machine that is silently uncompressing responses? Perhaps, does this happen for requests over HTTPS vs over HTTP? If it only happens on HTTP, it would seem to point to somethig on your machine is hijacking your traffic at some point, since a HTTPS request is encrypted to the web browser.
I’ve seen a few people report no compressing here and it turned out to be an anti virus or other scanning software that embeds into your network stack.