example is required
how can use server side caching in mvc ?
1259
06-Jul-2019
Updated on 06-Jul-2019
Anonymous User
06-Jul-2019If we want to use cache for static contents, then we have to define a few configurations in our application's Web.Config file as below. Here you can see, we have defined the file extension with mime type which needs to be cache. To defining age of caching time, we use "cacheControlMaxAge" attribute from "clientCache" and define the time here. For this demonstration, we have used 1 minute.
For more information, please follow the given below links :
https://www.mindstick.com/articles/126234/caching-concept-in-asp-dot-net-mvc