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
+4.5k Golang : Stop goroutine without channel
+45.5k Golang : Convert int to byte array([]byte)
+72.7k Golang : How to return HTTP status code?
+13k Golang : Send email with attachment(RFC2822) using Gmail API example
+4.5k Golang : fmt.Println prints out empty data from struct
+5k Golang : How to write backslash in string?
+10.7k Golang : Decompress zlib file example
+7.7k nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
+7.2k Golang : How To Use Panic and Recover
+18.2k Golang : Convert seconds to human readable time format example
+4.9k PHP : How to handle URI or URL with non-ASCII characters such as Chinese/Japanese/Korean(CJK) ?
+18k Golang : How to get own program name during runtime ?