Checking HTTP headers returned from website

If you want to check your headers returned on your website (perhaps if you are optimising your site using Google Lighthouse) – use CURL

CURL -v https://yourwebsite.com

Run this from the cmd prompt. It will return the whole website page – so redirect the output to a file to just see the header:

CURL -v https://yourwebsite.com >mywebsite.info.txt

This will output your website page to a file but show the header info on the screen. Check the headers for things like 'cache-control', HTTP/x version, Compression, etc.