Usually, we can cache and establish a dependency on Request.QueryString values, for example
<%@ OutputCache Duration="15" VaryByParam="search" %>
URLs for these may be as follows:
http://www.demo.com/default.aspx?search=name
But in my application, I use ASP.NET 4.0 routing, where I pass the product identifier, for example:
http:
or
http:
etc.
In this case, I get the product id somehow like
Page.Route.Value["product_id"]
In this case, how should I make the page dependent on this route value.
I'm new to caching, so I don't have much knowledge about this.
Do I need to do some kind of custom caching.
source share