title: IIS7: Setting far future expires header on specific files
body: <p>In IIS7 I am trying to set a really far future expires header for all content that have the file name that has a specific word in it.   For example I would like to set this header on any file being requested from IIS7 that is  </p>
  
  <pre><code>*cached*.js
  </code></pre>
  
  <p>I know that it is possible to set far future expires headers, But I want to know if it is possible to set it on <em>specific files</em> like in the example above.</p>
  
  <p>I want to use this method on a .NET application I am trying to serve up, but I want to make it more efficient so that certain files will be cached for a very long time, because it virtually never changes.  <strong>At the same time I don't want to be restricted to doing it for all files in a certain folder or all files of certain type.</strong></p>
  
  <p>I am open to doing this through modifying my Asp.Net application to achieve this, or through IIS7 settings.</p>
  
  <p>So guys, what do you think, is There a way to do this?</p>