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
+10.3k Golang : Convert(cast) float to int
+6.4k Javascript : Put image into Chrome browser's console
+42.9k Golang : Read tab delimited file with encoding/csv package
+14.1k Chrome : ERR_INSECURE_RESPONSE and allow Chrome browser to load insecure content
+9k Golang : Fix go.exe is not compatible with the version of Windows you're running
+15.5k Golang : Qt image viewer example
+7.1k Golang : How to join strings?
+32.9k Golang : Strip slashes from string example
+4.8k Golang : How to solve "too many .rsrc sections" error?
+10.3k Golang : convert(cast) float to string
+9k Golang : Generate random integer or float number
+30.4k Golang : Convert []string to []byte examples