Explain the concepts of Post Cache Substitution in .NET

Post Cache Substitution works opposite to fragment caching.

The entire page is cached, except what is to be kept dynamic. When [OutputCache] attribute is used, the page is cached on both the server and the client. Whereas, you use in case of post cache substitution the page is cached on the server only. HttpResponse.WriteSubstitution method is a way to implement it.


Post a Comment