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
+4.4k Linux/MacOSX : How to symlink a file?
+7.3k Gogland : Where to put source code files in package directory for rookie
+15.1k Golang : Get digits from integer before and after given position example
+9k Golang : Scramble and unscramble text message by randomly replacing words
+9.1k Golang : Get all countries currencies code in JSON format
+17k Golang : Find smallest number in array
+12.1k Golang : HTTP response JSON encoded data
+5.6k AWS S3 : Prevent Hotlinking policy
+27k PHP : Count number of JSON items/objects
+21.6k Fix "Failed to start php5-fpm.service: Unit php5-fpm.service is masked."
+32.6k Delete a directory in Go
+4.4k Unix/Linux : How to pipe/save output of a command to file?