Add support for http caching headers. fixes #2