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
+17.4k Golang : Set, Get and List environment variables
+5.9k Golang : Pat multiplexer routing example
+24.6k Golang : missing Mercurial command
+16.1k Golang : Find smallest number in array
+10.3k Golang : How to flush a channel before the end of program?
+10.7k Golang : md5 hash of a string
+4.4k Python : Delay with time.sleep() function example
+7.9k Golang : Find the length of big.Int variable example
+19.9k Golang : Convert string slice to struct and access with reflect example
+25.9k PHP : Count number of JSON items/objects
+7.1k Prevent Write failed: Broken pipe problem during ssh session with screen command