Output Cache in Webforms

Vote:
 

We can get the output cache working for MVC pages. 

However we cannot seem to make it work for our webforms pages. 

Before we spend more time on it, can anyone let us know if it's possible? 

#176984
Mar 31, 2017 14:28
Vote:
 

yes, you can set output cache for webform pages. you can do it through web.config. it looks like below

<caching>
<outputCacheSettings>
<outputCacheProfiles>
<add name="xxx" enabled="false" duration="3600" varyByParam="*" varyByContentEncoding="gzip;deflate" />
</outputCacheProfiles>
</outputCacheSettings>
</caching>

#177233
Apr 05, 2017 18:48
Vote:
 

Thanks @Duke! did you mean to set Enabled to true though? This is what we currently have:

<caching>
<outputCacheSettings>
<outputCacheProfiles>
<add name="ClientResourceCache" enabled="true" duration="3600" varyByParam="*" varyByContentEncoding="gzip;deflate" />
</outputCacheProfiles>
</outputCacheSettings>
</caching>

However it is not working and despite many attemps we cannot figure out why. 

If you have been able to make it work in the past, then at least we know it's possible. 

#177270
Edited, Apr 06, 2017 14:58
Vote:
 

yes, I mean to set Enabled to true. May I know how do you realize that the output cache does not work?

#177290
Apr 06, 2017 17:44
Vote:
 

Try setting the key "httpCacheExpiration" to something like "01:00:00" in the tag <episerver> like this:

<episerver>
    <applicationSettings httpCacheExpiration="01:00:00" httpCacheability="Public" />
</episerver>

This enables the output cache in Episerver.

#178044
Edited, Apr 27, 2017 15:36
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.