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
+13.3k Golang : Get command line arguments
+5.7k Golang : Count leading or ending zeros(any item of interest) example
+3.8k Golang : Find change in a combination of coins example
+4.5k Golang : How to stop user from directly running an executable file?
+2.1k Golang : Experimental Jawi programming language
+4.1k Default cipher that OpenSSL used to encrypt a PEM file
+6.4k Golang : Get UDP client IP address and differentiate clients by port number
+9.8k Golang : unknown escape sequence error
+6.2k Golang : Read file with ioutil
+11.7k Golang : Parse date string and convert to dd-mm-yyyy format
+8.3k Golang : Post data with url.Values{}
+3.7k Get website traffic ranking with Similar Web or Alexa