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
+5.6k Grep : How to grep for strings inside binary data
+8.2k Golang : What is the default port number for connecting to MySQL/MariaDB database ?
+7.9k Golang : Executing and evaluating nested loop in html template
+13.5k Golang : Reset buffer example
+11.7k Golang : zlib compress file example
+8.1k Golang : Gonum standard normal random numbers example
+5.3k Golang : Extract XML attribute data with attr field tag example
+6.3k Web : How to see your website from different countries?
+7.4k Golang : Number guessing game with user input verification example
+3.8k Linux/MacOSX : Search and delete files by extension
+16k Golang : Get input from keyboard
+4.5k Python : Convert(cast) string to bytes example