Add support for caching 404s. Fixes #85