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
+24.2k Golang : Call function from another package
+4.2k Detect if Google Analytics and Developer Media are loaded properly or not
+14.7k Golang : How to get URL port?
+13.9k Golang : Get user input until a command or receive a word to stop
+9.3k Golang : Serving HTTP and Websocket from different ports in a program example
+21.1k Golang : Convert PNG transparent background image to JPG or JPEG image
+5.8k PHP : Convert string to timestamp or datestamp before storing to database(MariaDB/MySQL)
+9.9k Golang : List available AWS regions
+4.6k Java : Generate multiplication table example
+6.1k Golang : Use NLP to get sentences for each paragraph example
+23.3k Golang : simulate tail -f or read last line from log file example
+18.8k Golang : Generate thumbnails from images