I'm using an outputcache for all my Umbraco v4 pages but would like to avoid such cache for any Ajax call ...
I added this line in default.aspx:
<%@OutputCache CacheProfile="umbProfil" %>
Then, in web.config:
<caching>
<outputCacheSettings>
<outputCacheProfiles>
<add name="umbProfil" duration="120" enabled="true" varyByHeader="???"
varyByParam="umbPage" location="ServerAndClient" />
</outputCacheProfiles>
</outputCacheSettings>
</caching>
Problem is now that all is cached, including my Ajax calls, which should not actually be : They are mainly forms and there field entries are maintained with the initial values till the cache expire...
To let you know, these Ajax are 'partial views' ie Umbraco regular pages that render only some forms...
How should I set the varyByHeader parameter so I actually cache everything related to umbPage EXCEPTING Ajax GET/POST calls ?