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
+9.1k Golang : Generate Codabar
+7.9k Golang : Sort words with first uppercase letter
+19.1k Golang : Delete item from slice based on index/key position
+13.5k Golang : Query string with space symbol %20 in between
+26.2k Golang : Calculate future date with time.Add() function
+24k Golang : Upload to S3 with official aws-sdk-go package
+7.8k Golang : How to feed or take banana with Gorilla Web Toolkit Session package
+5.7k CodeIgniter/PHP : Remove empty lines above RSS or ATOM xml tag
+8.1k Golang : Qt splash screen with delay example
+79.5k Golang : How to return HTTP status code?
+23.9k Golang : Call function from another package