I have this configuration for all static content on the site in the root directory:
<configuration>
<system.webServer>
<staticContent>
<clientCache cacheControlCustom="public" cacheControlMode="UseExpires"
httpExpires="Tue, 19 Jan 2038 03:14:07 GMT" />
</staticContent>
</system.webServer>
</configuration>
Now I want to give a different expires header to a specific file in a subdirectory and to the favicon file in the root directory. I'm trying this configuration after the above code but I get a server error.
<location path="">
<system.webServer>
<staticContent>
<clientCache cacheControlCustom="public" cacheControlMode="UseExpires"
httpExpires="Tue, 19 Jan 2012 03:14:07 GMT" />
</staticContent>
</system.webServer>
</location>
Maybe can anyone help?