ASP.net - Caching by Query-String (VaryByParam) -


In which situation should we use Question-String (VaryByParam) to get caching in ASP.NET?

In the case of a web-application can give an example of the real-life situation?

  product.aspx? ProductID = 12345  

Obviously you do not want to get the data for the product. Output cache of SPX, which was requested.

In detail

If I hit Products.aspx? ProductID = 12345 will be processed on the page, see the information for product 12345 and cache the result then you Products.aspx? ProductID = 54321 , the page will not be processed for you, but products.aspx will be taken from the output cache and you will see the information for 12345. Not good, VaryByParam solves it.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -