Note that there are some explanatory texts on larger screens.

plurals
  1. POasp.net apache2/nginx OutputCache problem
    text
    copied!<p>I have a problem regarding the outputcache settings in web.config file. I am using Nginx 0.8.53 with Fast CGI, on openSuse 11.3</p> <p>For dynamic pages, I created OutputCacheProfiles which are working perfectly on visual studio environment in windows. When I request a page, it comes with the correct cache-control header. But when I am working with Nginx on openSuse, it keeps sending "Cache-Control public, max-age=0" no matter what I set in OutputCacheProfiles. I tried apache2, it also seems to be not responding the outputcacheprofile settings as in nginx.</p> <p>Everything works perfectly on windows environment, I get the correct cache-control headers for different pages in different browsers. But when I am using apache or nginx it seems to be not responding to my outputcacheprofiles in web.config file. I deleted directive with its content, it still adds that max-age=0 on responses. Hope I explained the situation. Best regards.</p> <pre><code>&lt;caching&gt; &lt;outputCache enableOutputCache="true" /&gt; &lt;outputCacheSettings&gt; &lt;outputCacheProfiles&gt; &lt;add name="MatchesController.Index" duration="5" varyByParam="*" varyByCustom="utcOffset" location="ServerAndClient" enabled="true" noStore="true"/&gt; &lt;add name="MatchesFeedController.Index" duration="5" varyByParam="*" varyByCustom="utcOffset" location="ServerAndClient" enabled="true" noStore="true"/&gt; &lt;add name="MatchesFeedController.IncidentsSummary" duration="5" varyByParam="*" location="ServerAndClient" enabled="true"/&gt; &lt;add name="MatchesController.Show" duration="60" varyByParam="*" varyByCustom="utcOffset" location="ServerAndClient" enabled="true"/&gt; &lt;add name="MatchesController.Preview" duration="60" varyByParam="*" varyByCustom="utcOffset" location="ServerAndClient" enabled="true"/&gt; &lt;add name="MatchesController.Live" duration="60" varyByParam="*" varyByCustom="utcOffset" location="ServerAndClient" enabled="true"/&gt; &lt;add name="MatchesController.TeamStats" duration="60" varyByParam="*" varyByCustom="utcOffset" location="ServerAndClient" enabled="true"/&gt; &lt;/outputCacheProfiles&gt; &lt;/outputCacheSettings&gt; &lt;/caching&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload