How to check with curl if my website or the asset is gzipped ?
Problem :
You are trying to improve your PageSpeed score and trying to gzip the output of your website. You need to check from command line to see if your website output is gzipped.
Solution :
Use curl --compressed --head <your website URL or assets URL>
command. If the content is gzipped, you should see this line in the reply.
Content-Encoding: gzip
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+5.9k Golang : Shuffle strings array
+4k How to check with curl if my website or the asset is gzipped ?
+6k Android Studio : Rating bar example
+6.3k Golang : How to find out similarity between two strings with Jaro-Winkler Distance?
+4.5k Golang : Map within a map example
+9.1k Golang : Find and draw contours with OpenCV example
+8.5k Golang : How to profile or log time spend on execution?
+6.8k Golang : On lambda, anonymous, inline functions and function literals
+4.3k CodeIgniter/PHP : Remove empty lines above RSS or ATOM xml tag
+10.1k Golang : Encrypt and decrypt data with x509 crypto
+37.8k Golang : Get hardware information such as disk, memory and CPU usage
+5k Golang : Spell checking with ispell example