added caching class which also caches the HTTP headers
documentation for class