Tell us what is Output Caching in MVC?

Submitted by: Muhammad
The main purpose of using Output Caching is to dramatically improve the performance of an ASP.NET MVC Application. It enables us to cache the content returned by any controller method so that the same content does not need to be generated each time the same controller method is invoked. Output Caching has huge advantages, such as it reduces server round trips, reduces database server round trips, reduces network traffic etc.

OutputCache label has a "Location" attribute and it is fully controllable. Its default value is "Any", however there are the following locations available; as of now, we can use any one.

☛ Any
☛ Client
☛ Downstream
☛ Server
☛ None
☛ ServerAndClient
Submitted by: Muhammad

Read Online MVC Developer Job Interview Questions And Answers