We are using IIS7 and dotnet 3.5 in our company to build different web applications used by our internal as well as external customers. It has been recommended that we start using static content caching to cache image and html files. My understanding is that in web.config file we can set the cachecontrolmaxage to specify the number of days which the files are required to be cached. Further it has been recommended that we call these static pages by passing an argument say myjsfile.js?verfile=1234 which can be changed whenever a new version of the file is put in production.
I hope that I go the above right? Now what am looking for is a better way to achieve the second part, instead of having to pass a new version number everytime a new file is created can we have this deployed in some other way so that any new changes to the static file is there in production environment. What I guess am looking for is a simple way to promote multiple images and static files in production without worrying about changing the version number.