I know how to set expires headers for whole directories, but how do I set an expires header for an individual file - e.g. the favicon.ico file in the root directory?

link|improve this question

60% accept rate
feedback

1 Answer

up vote 1 down vote accepted

It appears that you need to use a custom developed HttpModule to do this. Here is a similar question from StackOverflow about this. It doesn't look like there is anything built in.

IIS7: Setting far future expires header on specific files

link|improve this answer
1  
Man, in IIS6 it was easy! – Mark Henderson Mar 26 '10 at 2:03
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.