title: Azure CDN - Enabling HTTP 304 Caching with ETag - Hosted Web Role
body: <p>We are trying to enable <strong>HTTP compression</strong> (gzip) and <strong>HTTP 304 Caching</strong> via ETags on Azure CDN. We already discovered an issue with <a href="https://stackoverflow.com/a/10434390/175679">enabling Azure CDN Compression</a>, but now we can't get compression and ETag caching (<a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.5" rel="noreferrer">304s</a>) working simultaneously. This issue has been <a href="http://social.msdn.microsoft.com/Forums/en-US/windowsazuredata/thread/e16a3017-651b-41a7-af2a-d0b0ae1cfe1b" rel="noreferrer">posted to Azure forums here</a>.</p>
  <h3><a href="http://bit.ly/Lfb6c8" rel="noreferrer">Here is an example of the compressed</a>, but not HTTP cacheable (304) link:</h3>
  <blockquote>
  <p><a href="https://xxxx.vo.msecnd.net/resourceManager.axd?token=HL80vX5hf3lIAAA&amp;group=core.js" rel="noreferrer">https://xxxx.vo.msecnd.net/resourceManager.axd?token=HL80vX5hf3lIAAA&amp;group=core.js</a></p>
  </blockquote>
  <h3><a href="http://bit.ly/KR3b24" rel="noreferrer">Here is an example of the cacheable (304)</a>, but not compressible (gzip) link:</h3>
  <blockquote>
  <p><a href="https://xxxx.vo.msecnd.net/resourceManager.axd?token=HL80vX5hf3lIAAA&amp;group=core.png" rel="noreferrer">https://xxxx.vo.msecnd.net/resourceManager.axd?token=HL80vX5hf3lIAAA&amp;group=core.png</a></p>
  </blockquote>
  <p>Does anyone know how to get <strong>HTTP Caching (304s)</strong> and <strong>HTTP Compression</strong> working together on the Azure CDN?</p>