IIS7输出缓存-仅在缓存中存在60秒?

IIS7输出缓存-仅在缓存中存在60秒?,iis,caching,iis-7,web-config,output-caching,Iis,Caching,Iis 7,Web Config,Output Caching,我试图缓存HTTP处理程序的JSON输出(不是ASP.NET页面,因此页面级别的OutputCache指令不适用)。我正在Windows Server 2008上运行IIS 7.5 我已经在Web.config中添加了一些行,以便在用户模式(不是内核模式,因为我需要身份验证)下启用缓存: 但那家伙一直没有得到答案 提前谢谢 编辑:我终于能够通过修改OutputCacheTL和ObjectCacheTL注册表值来解决这个问题,如中所述。Microsoft文档似乎不完整。+1。我的dev服务器出现

我试图缓存HTTP处理程序的JSON输出(不是ASP.NET页面,因此页面级别的OutputCache指令不适用)。我正在Windows Server 2008上运行IIS 7.5

我已经在Web.config中添加了一些行,以便在用户模式(不是内核模式,因为我需要身份验证)下启用缓存:


但那家伙一直没有得到答案

提前谢谢


编辑:我终于能够通过修改OutputCacheTL和ObjectCacheTL注册表值来解决这个问题,如中所述。Microsoft文档似乎不完整。

+1。我的dev服务器出现问题,因为在进行更改后无法刷新缓存中的页面。服务器运行时信息是在多次搜索后修复我的问题的。
<system.webServer>      
    <caching enabled="true" enableKernelCache="false">  
        <profiles>
            <!-- cache content according to full query string for 12 hours -->
            <add varyByQueryString="*" duration="12:00:00" policy="CacheForTimePeriod" extension=".aspx" />
        </profiles>             
    </caching>      
    <urlCompression dynamicCompressionBeforeCache="true" />
</system.webServer>

<location path="Content">
    <system.webServer>
        <!-- cache content that's requested twice in 30 minutes -->
        <serverRuntime enabled="true" frequentHitThreshold="2" frequentHitTimePeriod="00:30:00" />               
    </system.webServer>
</location>