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
+11.6k Golang : Format numbers to nearest thousands such as kilos millions billions and trillions
+20.5k Swift : Convert (cast) Int to int32 or Uint32
+9.2k Golang : Get curl -I or head data from URL example
+18.6k Golang : Send email with attachment
+13.6k Facebook PHP getUser() returns 0
+6.1k Golang : Compound interest over time example
+22.1k Golang : Use TLS version 1.2 and enforce server security configuration over client
+36.7k Golang : Save image to PNG, JPEG or GIF format.
+7.5k Golang : Gorrila set route name and get the current route name
+8.6k Golang : Convert(cast) []byte to io.Reader type
+13.2k Golang : Convert(cast) int to int64