Forum Moderators: phranque

Message Too Old, No Replies

Caching images with SSI and IIS

How can I get images to cache?

         

Josh_F

1:12 am on Jan 6, 2004 (gmt 0)

10+ Year Member



I'm working on a site that has a lot of images that are repeated throughout yet they aren't cached locally as I'd like. As a result each page load causes a complete refresh of all graphics elements. The webhost has just changed the HTTP headers so that the images come across with a 2 day expiration, but the .shtml files (on the IIS host) don't. The images on the .shtml pages seem to inherit this behavior as they still don't cache.

Is there a way to set a 2-day (or similar) expiration on .shtml pages so that they don't force a reload every time users hit the back button and so that other pages with the same graphics load quickly? (My browser, IE, is set to check for updates. Would like a cross-browser fix.)

Josh_F

2:04 am on Jan 6, 2004 (gmt 0)

10+ Year Member



Anticipatory clarification: My browser is set to "check for newer versions automatically" which means it should use the cache if the file hasn't changed.