Add support for custom headers on HTTP requests.  Don't close cache when
there is no cache.