How do you know if the HTTP compression setup is working? Is there any tool I can use to see the compressed page before it is uncompressed by the browser? Are there any tools to measure the amount compressed and response speed?
Simply right click on a request, then click Header Options , Response Headers , and then select Content-Encoding . Show activity on this post.
HTTP compression allows content to be compressed on the server before transmission to the client. For resources such as text this can significantly reduce the size of the response message, leading to reduced bandwidth requirements and download times.
Double click on the file and select headers. Under 'Response headers' you are looking for the 'Connection-Encoding' field, it will say gzip if it is enabled.
This isn't IIS-specific, but you can use cURL:
curl -H 'Accept-Encoding: gzip,deflate' -D - http://example.com
Then look for a Content-Encoding: gzip
header in the output.
For Windows, I highly recommend Fiddler, which is a client-side tool that proxies your web traffic and lets you examine it. It will show you if compression is on and working. It is also useful for many other client-side HTTP-related debugging and diagnosis tasks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With