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
+3.9k How to check with curl if my website or the asset is gzipped ?
+4.5k Golang : How to detect if a sentence ends with a punctuation?
+26.7k Get client IP Address in Go
+4.7k Golang : Embedded or data bundling example
+6.5k Golang : Get curl -I or head data from URL example
+6.7k Golang : Gorilla web tool kit schema example
+24.4k Golang : Converting a negative number to positive number
+3.3k PHP : Extract part of a string starting from the middle
+14.9k Golang : Measure http.Get() execution time
+4.9k Golang : Accessing dataframe-go element by row, column and name example