Use different form of X-Forwarded-Proto header that is correctly recognised by Varnish
Add varnish configuration for caching http and https requests differently