Comments (11)
I don't have a Mac so I'm not sue I will be able to troubleshoot this for you, unfortunately. Would you be willing to dig into the underlying cause?
from compression.
Thx! How can I support you?
Here is a related post on SO
from compression.
Gettng a packet capture of the traffic at the server and the same traffic at the client would help me see if (1) there are any obvious issues with the response from a standards pov and (2) if the response was altered between those two points.
from compression.
I'll try to get a capture, but that may take a while. What format/tool?
Not sure how I can get a tool on Mac OS side, I'm not a Mac user either.
from compression.
I am about to go to work, so won't likely be able to respond for the rest of the day anyhow. The tool you use doesn't matter; whatever works on that OS. Ideally a pcap file is good, but if there is a different format you are restricted to, just upload that and we can work though with that.
from compression.
It occurs only in combination with http2 (https:) using spdy. Http works fine with compression. Is an TLS-encripted capture of any use for you? If not, what else?
I'm new to this level of debuging. Sorry when asking silly questions here.
Update: It works when using module https instead of spdy. Could also be a spdy issue. Can't use HTTP2 for the moment since it is seems to be no drop-in replacement for spdy/https.
from compression.
So I think you are on track to narrow down on what the issue could be happening from. A packet capture can be used even if it is encrypted, but just needs to be decrypted. Decrypting requires having the symmetric key that was exchanged or just having a capture of the ssl handshake and the private key from the server.
Of course if that is a real server with a real cert, don't share the private key, but you could even decrypt locally and then share the decrypted capture, for instance. The Wireshark tools makes it pretty straight forward, for example.
from compression.
OK, I installed wireshark and have to find out, how to decrypt using the key I have.
This may take a while, since I'm rather busy atm.
from compression.
After throwing some hours against it, I'm giving up for the moment:
I followed https://wiki.wireshark.org/TLS?action=show&redirect=SSL#TLS_Decryption
- I'm not able to decrypt using a SSLKEYLOGFILE, Safari's doesn't seem to support that.
- I'm not able to decrypt using the the server's private key .
So I'll live for the moment with Safari on Mac OS users not compressing and keep recommending Chrome & FF, if compression matters. Thx for your time.
No problem here if you close this
from compression.
Update: It works when using module https instead of spdy. Could also be a spdy issue. Can't use HTTP2 for the moment since it is seems to be no drop-in replacement for spdy/https.
@ICarryTheDustOfAJourney I did a little digging and came across this post from Apple:
https://webkit.org/blog/8569/removing-legacy-spdy-protocol-support/
What version of macOS and iOS were/are you testing on? I wonder if this issue could be replicated in recent versions of these browsers? With SPDY being deprecated for some time, it's certainly possible you hit a bug that doesn't exist in a newer version of Safari.
If you have a minimal reproducible example, I'd be happy to test it as well.
from compression.
Closing this issue as I don't think there's anything we can do in compression for this at the moment and is probably an issue related to spdy and safari. as always, feel free to re-open if there's a reproducible issue here.
from compression.
Related Issues (20)
- Setting Vary header although caching is disabled HOT 1
- "drain" event listener leak when using res.once("drain"); can't use res.removeListener("drain") HOT 3
- compresssion doesn't work ,the vue.txt is 2m HOT 2
- Content-Type: application/json; charset=utf-8 No effect HOT 2
- Question: Why this middleware HOT 2
- Is compression working when node server is running on a container? HOT 2
- middleware fails when the request has more than 1 values for accept-encoding header HOT 2
- Is compression result cached? HOT 1
- change Transfer-encoding HOT 1
- Why does the data size increase after compression HOT 1
- Force size to be a minimum... HOT 2
- Chunked encoding is broken after using this middleware HOT 1
- Using a current debug version HOT 1
- Deflate backwards HOT 7
- Compression instrumentation (before/after compression hooks) HOT 2
- Angular Not Compressing? HOT 2
- compression not working json payload HOT 6
- Crash when compressing characters like ū HOT 1
- Express returns a non-compliant HTTP/206 response when gzip is enabled HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compression.