Overriding cache settings at request/session level

Will Wiencek asked on March 5, 2015 21:08

We're using web views to access certain pages from a mobile application. However, our cache setup is interfering with how these pages are rendered within the app. Disabling caching on these pages isn't an option and duplicating the pages for app access isn't desirable. Is there a way to override cache options within the request or session? For example, if we detect a certain query string, can we serve a non-cached copy of the page for that request without clearing the cache for other requests?

Recent Answers


Brenden Kehren answered on March 7, 2015 17:51

Can you explain more on how caching is interfering with how the pages are rendered? Maybe there is another solution.

One thing you may be able to do is similar to what you're suggesting and that would be to put a macro in the Partial cache minutes box within the webparts causing the problems. It could simply look for that query string value and set it to 0 (no caching) if it finds it finds it.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.