I have been researching ways to cache contents in a website that I am working on. Below details how you could cache static contents in a ASP.Net MVC project.
Here is what you need to do
Include the below content in your root web.config file, section system.webServer. The below code caches content for 7 days.
<staticContent> <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" /> </staticContent>