question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't seem to perform compression when running on Windows.

See original GitHub issue

We 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): image

You can see the eTag is the same.
No idea what’s going on here - any help would be appreciated.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dougwilsoncommented, Oct 17, 2018

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.

1reaction
dougwilsoncommented, Oct 17, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found