Is there a way to set cache related header for a specific file type in II6? We want to turn off cache on all our *.js and *.css file here, but IIS6 is forcing us to do a all or nothing approach.
|
feedback
|
migrated from stackoverflow.com Aug 14 '09 at 23:43
This question came from our site for professional and enthusiast programmers.
|
For each folder containing the files you want to cache, open it's properties page, and under the HTTP Headers tab, set expiration date to something like 2050-12-31 | |||
feedback
|
|
You can set caching for individual files in IIS6 by right-clicking the file in the Content pane, going to Properties and setting the cache settings, or as rodiaz suggested, doing it to an entire folder. | |||
|
feedback
|