如何在Windows Server上真正设置最大年龄标题?

我已经将最大年龄设置为1分钟,但是当我查看响应标题时,我看到max-age = 86400(一天)。 其他的东西是否重写了这个设置? 我也为大多数MIMEtypes设置了内核caching为1分钟,以确保它不是源代码。 还有其他地方我应该寻找一个覆盖? 另一个webconfig设置?

这是webconfig的相关部分。

<system.webServer> <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true" /> <caching enabled="true"> <profiles> <add extension=".gif" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" /> <add extension=".png" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" /> <add extension=".js" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" /> <add extension=".css" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" /> <add extension=".jpg" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" /> <add extension=".jpeg" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" /> </profiles> </caching> <staticContent> <!--Enable gzipping JS by changing the mime type.--> <remove fileExtension=".js" /> <mimeMap fileExtension=".js" mimeType="text/javascript" /> <!-- d.hh:mm:ss --> <clientCache cacheControlMode="UseMaxAge" httpExpires="0.00:01:00" /> 

应该使用

 cacheControlMaxAge="0.00:01:00" 

代替

 httpExpires="0.00:01:00" 

但后者不会抛出错误,只是不起作用。