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
+16.1k Golang : Get sub string example
+17.2k Golang : XML to JSON example
+11.5k Golang : Fix fmt.Scanf() on Windows will scan input twice problem
+9.5k Golang : Terminate-stay-resident or daemonize your program?
+16.1k Golang : ROT47 (Caesar cipher by 47 characters) example
+11.9k How to tell if a binary(executable) file or web application is built with Golang?
+7.4k Golang : How to iterate a slice without using for loop?
+6.2k Golang : Debug with Godebug
+4.8k Javascript : Access JSON data example
+10.7k Fix ERROR 1045 (28000): Access denied for user 'root'@'ip-address' (using password: YES)
+7.4k Golang : Calculate how many weeks left to go in a given year
+20.4k Golang : How to get struct tag and use field name to retrieve data?