Write response headers when caching a response