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
+11.3k Golang : Simple file scaning and remove virus example
+14.6k Golang : Submit web forms without browser by http.PostForm example
+6.3k Golang : Embedded or data bundling example
+9.2k Golang : Convert(cast) string to int64
+3k Golang : Fix go-cron set time not working issue
+41k Golang : How do I convert int to uint8?
+12.3k Golang : Transform comma separated string to slice example
+9.2k Golang : Qt Yes No and Quit message box example
+24.9k Golang : Storing cookies in http.CookieJar example
+10.5k Golang : Removes punctuation or defined delimiter from the user's input
+10.7k Golang : Simple image viewer with Go-GTK
+16.1k Golang : Test floating point numbers not-a-number and infinite example