IIS 7.5では、cacheControlMaxAgeを1年に設定しました。
<location path="Content/Images">
<system.webServer>
<staticContent>
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" />
</staticContent>
</system.webServer>
</location>
このガイドによると:有効期限とCache-Controlの設定:ASP.NETの静的リソースのmax-ageヘッダー
ただし、Google PageSpeedツールは、ファイルがキャッシュされていないと言っています。
The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:
* https://local.example.com/Content/Images/image1.png (expiration not specified)
(etc)
なぜ「有効期限が指定されていません」と表示されるのですか?
Webアプリ全体がhttps経由で提供されますが、それが要因ですか?