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
+23.8k Golang : Get current file path of a file or executable
+11.5k Golang : HTTP response JSON encoded data
+13.8k Golang : Get all local users and print out their home directory, description and group id
+32.9k Golang : How to stream file to client(browser) or write to http.ResponseWriter?
+14.1k Golang : Get timezone offset from date or timestamp
+6.3k Golang : Use modern ciphers only in secure connection
+35.1k Golang : Display float in 2 decimal points and rounding up or down
+29.4k Golang : How to convert(cast) string to IP address?
+13.3k Golang : How to shuffle elements in array or slice?
+12.7k Golang : Gin framework accept query string by post request example
+6.4k Golang : Check to see if *File is a file or directory