Added some options for caching and storage class. Also made HTTPS and gzip detection an option.