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
+7.2k Nginx : How to block user agent ?
+11.1k Golang : Create S3 bucket with official aws-sdk-go package
+10k Golang : Function wrapper that takes arguments and return result example
+7k Golang : How to solve "too many .rsrc sections" error?
+6k Facebook : How to force facebook to scrape latest URL link data?
+7.2k Golang : Squaring elements in array
+5.7k Python : Print unicode escape characters and string
+15.1k Golang : Search folders for file recursively with wildcard support
+6.1k Linux/MacOSX : Search for files by filename and extension with find command
+7.2k Golang : Array mapping with Interface
+19.2k Golang : When to use public and private identifier(variable) and how to make the identifier public or private?
+6.6k Elasticsearch : Shutdown a local node