views:

909

answers:

2

If I set the content expiration for static files to something like 14 days and I decide to update some files later on, will IIS know to serve the updated files or will the client have to wait until the expiration date?

Or is it the other way around where the browser requests a new file if the modified date is different?

Sometimes I update a file on the server and I have to do a hard refresh (CTRL+F5) to see the difference. Currently I have it to expire after 1 day.

A: 

You want ETags

Tom Ritter
Is there something I need to do in order to get IIS to generate ETags?
+2  A: 

The web browser, and any intermediate proxies, are allowed to cache the page until its expiration date. This means that IIS might not even be aware of the client viewing the page.

erikkallen