Client-Side caching on IIS7 doesn't seem to work

Posted by thomasbtv on Stack Overflow See other posts from Stack Overflow or by thomasbtv
Published on 2013-06-28T16:19:52Z Indexed on 2013/06/28 16:21 UTC
Read the original article Hit count: 204

Filed under:
|

I have set content caching on a specific folder by following the local web.config method. I don't think it works, and I would like to fix this.

I activate the cache using the IIS / HTTP Headers / Common headers feature. I set them to 1 day of expiration.

I opened a page with Google Chrome in private navigation, and then open the Network tab in the console.
The first time I load the page, everything loads from the site, obviously.
If I refresh the page, I see 2 types of loading in the Network console:

  • the files from Google and Facebook and such have a status of 200, and a size of (from cache).
  • the files from the folder for which I set the caching have a status of 304 and their size is displayed.

So, I guess the caching setting doesn't work? Or does the 304 response means that it's loaded from the cache? If they aren't, how can I make it work ?

Thanks !

© Stack Overflow or respective owner

Related posts about caching

Related posts about iis