I am developing a website in ASP.NET and I am using various javascript frameworks/libraries. The different files belonging to these frameworks/libraries rarely changes thus there is no reason to refresh those files once they have been sent to the client browser (atleast not everytime a page is served).
I see that the HttpContext object can be used somehow, that I can set the content expiration on the files/folders on the IIS, or maybe setup somekind of caching in the web.config file.
1. What is best practice/what approach should I take?
If the content expiration on the IIS works, then this is just great (and easy). But during development, I use the ASP.NET Development Server, which does not interact with the external IIS - thus no performance gain achieved during development :(
2. How can I use cache here (depending on question 1)?
I would like to modify this question to be used as a "this-is-how-its-done" thread for future reference for me and others.