We enabled static resource caching in our ASP.NET application like this:
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseExpires" httpExpires="Thu, 29 Oct 2020 00:00:00 GMT" />
</staticContent>
</system.webServer>
Using a sniffer, we can confirm that the Expires
tag is actually being placed on the respose's header.
However, the browsers insist on requesting the server to check whether the resource has changed or not. The server returns a not modified code (304). This is, indeed, a very light weight request but we're highly concerned about performance so we'd like to save theses requests.
How can I tell the brosers they shouldn't even request the server?
PS: ETags are properly being sent to the client. I thought that if I removed them the browsers could somehow stop requesting the server but I couldn't remove these tags on IIS 7. I don't know if it would help anyway.