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
+18.5k Golang : Find IP address from string
+12.8k Golang : Get terminal width and height example
+14.2k Golang : Get uploaded file name or access uploaded files
+8.7k Golang : Accept any number of function arguments with three dots(...)
+14.2k Golang : How to shuffle elements in array or slice?
+5.9k Golang : Compound interest over time example
+17.3k Golang : Check if IP address is version 4 or 6
+9.4k Golang : Convert(cast) string to int64
+8.2k Golang: Prevent over writing file with md5 hash
+7.6k Golang : Test if an input is an Armstrong number example
+23k Golang : Randomly pick an item from a slice/array example