I'm considering using the ASP.NET output cache to improve the performance of my custom HTTP handler.
If I set an expiry header in the response, will the output cache be intelligent enough to cache the response accordingly? Or do I need to manually create an appropriate CacheDependency?
If I gzip the response and set the Content-Encoding header, will the output cache be smart enough to prevent the response being double-gzipped if dynamic compression is turned on? What happens if the output cache has a gzipped version and a client that doesn't accept gzip requests the resource?