Azure CDN - Enabling HTTP 304 Caching with ETag - Hosted Web Role

后端 未结 1 1318
清歌不尽
清歌不尽 2021-02-15 12:30

We are trying to enable HTTP compression (gzip) and HTTP 304 Caching via ETags on Azure CDN. We already discovered an issue with enabling Azure

相关标签:
1条回答
  • 2021-02-15 13:30

    It is important to know if you are specifying If-None-Match or If-Match? Based on my experience, most users rely on modification date and GET If-Modified-Since.

    ETag is stronger if you need to a cache flag for a given entity with multiple encodings, etc.

    For your requirement please use Modified/If-Modified-Since and you don't need variable caching based off encodings and this should work.

    More info is here: HttpWebResponse LastModified

    0 讨论(0)
提交回复
热议问题