JavaScript Editor jscript editor     Web designer 

Main Page

At times you might have a page that you want to cache, but for which different versions are created based on the request. For example, the page might have different output depending on the values passed in the query string.

ASP.NET allows you to cache multiple versions of the same page in the output cache. You can vary the output cache by the following:

You can cache multiple versions of a page output declaratively using attributes of the @ OutputCache directive, and programmatically using the properties and methods of the HttpCachePolicy class.

The @ OutputCache directive includes four attributes that enable you to cache multiple versions of page output:

The HttpCachePolicy class provides two properties and a method that allow you to programmatically specify the same cache configuration that you can set declaratively. The VaryByParams and VaryByHeaders properties allow you to specify the query string parameter and header names, respectively, that you want to vary the cache policy by. The SetVaryByCustom method allows you to define custom strings by which to vary the output cache.

See Also

JavaScript Editor jscript editor     Web designer 
casino games online