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
+17.8k Golang : How to make a file read only and set it to writable again?
+10k Golang : Read file and convert content to string
+44.9k Golang : Use wildcard patterns with filepath.Glob() example
+30.4k Golang : Generate random string
+6.1k Golang : How to write backslash in string?
+6.8k Default cipher that OpenSSL used to encrypt a PEM file
+8.8k Android Studio : Image button and button example
+5.4k Golang : If else example and common mistake
+16.9k Golang : Get the IPv4 and IPv6 addresses for a specific network interface
+11.4k Golang : Delay or limit HTTP requests example
+9k Golang : Inject/embed Javascript before sending out to browser example