IIS 8.5 で Google フォントのキャッシュ バリデータを指定したいと考えています。
http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,300,700,600
web.config で行ったことは以下のとおりです。
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="10.00:00:00" />
</staticContent>
拡張機能でキャッシュも追加しました
<caching>
<profiles>
<add extension=".woff" policy="CacheForTimePeriod" kernelCachePolicy="DontCache" duration="23:59:00" />
<add extension=".ttf" policy="CacheForTimePeriod" kernelCachePolicy="DontCache" duration="23:59:00" />
<add extension=".gif" policy="CacheForTimePeriod" kernelCachePolicy="DontCache" duration="23:59:00" />
<add extension=".js" policy="CacheForTimePeriod" kernelCachePolicy="CacheUntilChange" duration="23:59:00" />
<add extension=".png" policy="CacheForTimePeriod" kernelCachePolicy="DontCache" duration="23:59:00" />
<add extension=".jpg" policy="CacheForTimePeriod" kernelCachePolicy="DontCache" duration="23:59:00" />
<add extension=".css" policy="CacheForTimePeriod" kernelCachePolicy="CacheUntilChange" duration="23:59:00" />
</profiles>
</caching>
しかし、私が使用したGoogle Fontにキャッシュバリデーターを適用することはまだできません。また、静的コンテンツの有効期限を 2030 年 5 月などに設定しようとしましたが、Google PageSpeed もそれを認識しませんでした。* 私は .httaccess でそれを行うことができ、stackoverflow で .htaccess トピックをチェックしました。*