Live Chat Icon For mobile
Live Chat Icon

How can I cache the page by the complete querystring

Platform: ASP.NET| Category: Output Caching

Try the following:


<%@ OutputCache Duration='10' VaryByParam='*' %> 

This should result in any changes to querystring parameters causing a new version of the page to be cached. Keep in mind that this can significantly increase the amount of memory used for caching, depending on how many querystring parameters you’re using.
Note: ‘*’ is not recommended – it is best to use a list of params that your page truly varies by.

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.