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
+13.9k Golang : Record voice(audio) from microphone to .WAV file
+3.9k Mac OSX : Get a process/daemon status information
+5.7k How to automatically restart your crashed Golang server
+8.8k Golang : Parsing or breaking down URL
+16.9k Golang : Convert integer to binary, octal, hexadecimal and back to integer
+2.3k Golang : How to use if, eq and print properly in html template
+2.1k Golang : Generate Interleaved 2 inch by 5 inch barcode
+2.5k Golang : Configure crontab to poll every two minutes 8am to 6pm Monday to Friday
+3.7k Golang : Get all countries currencies code in JSON format
+3.6k Golang : Load DSA public key from file example
+5.1k Golang : Copy map(hash table) example
+4.2k Golang : Fix go.exe is not compatible with the version of Windows you're running