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
+19k Golang : Get RGBA values of each image pixel
+8.6k Golang : Gorilla web tool kit schema example
+5.6k Golang : Find change in a combination of coins example
+31.5k Golang : Convert an image file to []byte
+10k Golang : Random Rune generator
+15.7k Golang : Update database with GORM example
+54.9k Golang : Unmarshal JSON from http response
+8.9k Golang : io.Reader causing panic: runtime error: invalid memory address or nil pointer dereference
+8.2k Golang : Convert word to its plural form example
+4.5k MariaDB/MySQL : Form select statement or search query with Chinese characters
+5.9k Golang : How to verify input is rune?