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
+3.8k Nginx and PageSpeed build from source CentOS example
+5.3k PHP : Proper way to get UTF-8 character or string length
+5.2k Golang : How to solve "too many .rsrc sections" error?
+6.1k Javascript : How to get JSON data from another website with JQuery or Ajax ?
+10.6k Golang : How to detect a server/machine network interface capabilities?
+6.5k Golang : Detect sample rate, channels or latency with PortAudio
+13.3k Golang : Parsing or breaking down URL
+4.4k Unix/Linux : How to archive and compress entire directory ?
+6.2k Golang : Of hash table and hash map
+23.7k Golang : Storing cookies in http.CookieJar example
+12.7k Golang : Get current time
+9.4k Golang : Simple File Server