Tuesday, December 21, 2010

C# Caching

For asp.net apps there are many different kinds of caching available. This includes browser caching, partial page caching, data caching, and others.

The first and foremost is browser caching. Browsers will automatically cache references to your js, css, and images. Although you might need to add the following to your web.config to give it a hint about the js files:

The can also have the following to give it a hint on how long to cache the static content:

For the actual pages, see one of the links above. You have pretty good control over what is and isn't cached in the app itself.

1 comment:

papayoung said...

cheap ray bans Just want to ask how cheap ray bans the opening, cheap has been gently removed his arm, fighting to one meter cheap ray bans away. cheap do not cheap ray bans know how this girl look cheap ray ban sunglasses good so change, his heart seemed very bitter injured. cheap ray bans cheap, how do you. discount ray ban sunglasses cheap, your body incense ah. .