Is Chrome ignoring Cache-Control: max-age?

前端 未结 8 1779
南旧
南旧 2020-11-27 02:56

Background:

  • IIS 7
  • AspNet 3.5 web app

Chrome dev tools lists 98 requests for the home page of the web app (aspx + js + css + images). I

8条回答
  •  庸人自扰
    2020-11-27 03:27

    Quite an old question, but I noticed just recently (2020), that Chrome sometimes ignores the Cache-Control headers for my image resources when browsing using an Incognito window.

    "Sometimes" because in my case the Cache-Control directive was honored for small images (~60-200KB), but not for larger ones (10MB).

    Not using Incognito window resulted in Chrome using the disk cached version even for the large images.

提交回复
热议问题