Would like to inquire if there is any method to Enabling caching for certain files/folder in ASP.Net MVC3
The target files are some CSS and Jquery js files which are likely not to change for a long period.
Kind regards,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Configure the HTTP Expires Response Headers from IIS, it is very simple, just check Expire Web content
http://technet.microsoft.com/en-us/library/cc770661(v=ws.10).aspx
And yes, use bundling! It will generate unique hash, scripts and styles will be recached when any file changes in the bundle.