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
+36k Golang : Validate IP address
+17.7k Golang : Put UTF8 text on OpenCV video capture image frame
+6k Javascript : Generate random key with specific length
+5.5k Unix/Linux : Get reboot history or check when was the last reboot date
+14.7k Golang : Search folders for file recursively with wildcard support
+6.9k Golang : Dealing with postal or zip code example
+4.9k Golang : Print instead of building pyramids
+19.5k Golang : Accept input from user with fmt.Scanf skipped white spaces and how to fix it
+27k Golang : Convert CSV data to JSON format and save to file
+9.2k Golang : Qt Yes No and Quit message box example
+22.9k Golang : Print out struct values in string format