IIS Not Caching Images Between Visits -


i'm trying cache static images in iis. it's partially working - images cache between requests when clicking through site. if go different site (like google) come back, can see images reloading again.

i'm not doing hard refresh, pasting url in location bar , pressing [enter].

here's caching settings in web.config:

<system.webserver>   <staticcontent>     <clientcache cachecontrolmode="usemaxage" cachecontrolmaxage="5.00:00:00" />   </staticcontent>   ... 

when run curl --head ... on image, here's get:

http/1.1 200 ok cache-control: max-age=432000 content-length: 10199 content-type: image/png last-modified: mon, 21 jan 2013 21:58:43 gmt accept-ranges: bytes etag: "fbaa7c7a22f8cd1:0" server: microsoft-iis/7.0 set-cookie: sessionid=14ab46aa-7633-412f-95c3-a3ce0667eb25; expires=tue, 18-apr-2113 16:17:54 gmt; path=/ x-powered-by: asp.net date: thu, 18 apr 2013 16:17:54 gmt 

i expect browser read cache until expired. ideas why it's not using cache?


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -