web.config 파일의 outputcache 설정과 관련하여 문제가 있습니다. openSUSE에서 Nginx 0.8.53을 사용하고 있습니다. 11.3asp.net apache2/nginx OutputCache 문제
동적 페이지의 경우 Visual Studio 환경에서 완벽하게 작동하는 OutputCacheProfiles를 만들었습니다. 페이지를 요청할 때 올바른 캐시 제어 헤더가 제공됩니다. 그러나 openSuse에서 Nginx로 작업 할 때 OutputCacheProfiles에서 설정 한 내용과 상관없이 "Cache-Control public, max-age = 0"을 계속 전송합니다. 내가 apache2 시도, 그것도 nginx에서 outputcacheprofile 설정에 응답하지 않는 것 같습니다.
모든 것이 Windows 환경에서 완벽하게 작동하므로 여러 브라우저의 서로 다른 페이지에 대해 올바른 캐시 제어 헤더를 얻습니다. 하지만 아파치 또는 nginx 사용할 때 web.config 파일에 내 outputcacheprofiles 응답하지 않는 것 같습니다. 내용이있는 지시문을 삭제했지만 응답에 max-age = 0이 추가됩니다. 나는 상황을 설명하기를 희망한다. 감사합니다.
<caching>
<outputCache enableOutputCache="true" />
<outputCacheSettings>
<outputCacheProfiles>
<add name="MatchesController.Index" duration="5" varyByParam="*" varyByCustom="utcOffset" location="ServerAndClient" enabled="true" noStore="true"/>
<add name="MatchesFeedController.Index" duration="5" varyByParam="*" varyByCustom="utcOffset" location="ServerAndClient" enabled="true" noStore="true"/>
<add name="MatchesFeedController.IncidentsSummary" duration="5" varyByParam="*" location="ServerAndClient" enabled="true"/>
<add name="MatchesController.Show" duration="60" varyByParam="*" varyByCustom="utcOffset" location="ServerAndClient" enabled="true"/>
<add name="MatchesController.Preview" duration="60" varyByParam="*" varyByCustom="utcOffset" location="ServerAndClient" enabled="true"/>
<add name="MatchesController.Live" duration="60" varyByParam="*" varyByCustom="utcOffset" location="ServerAndClient" enabled="true"/>
<add name="MatchesController.TeamStats" duration="60" varyByParam="*" varyByCustom="utcOffset" location="ServerAndClient" enabled="true"/>
</outputCacheProfiles>
</outputCacheSettings>
</caching>