Forum Moderators: open

Message Too Old, No Replies

How to show images from browser cache without sending a http request

         

lohia anirudh

10:05 am on Mar 21, 2007 (gmt 0)

10+ Year Member



There are some images that I use in the header portion and the menu portion which are common for all the pages. Is there any header through which I can force a browser to fetch those images from its cache without even sending an http request (304)?

penders

9:53 pm on Mar 21, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hhhhmmm, I don't *think* there is - Using the cache is generally the default behaviour for most browsers. If it can use it, it will, as it should benefit the users experience. It will only not use the cache if you have explicitly told it not to (via headers), or the user has disabled it (or forced a refresh) in the browser, or the file simply isn't there to be retrieved in the first place. It's possible that some dynamically generated pages aren't cached - but 'the problem' is that they usually are.

So, I would have thought your best bet is to ensure that you have not disabled caching in any way and hope for the best!?

IE has a setting 'Make available offline' in the favorites - but I think that's just to do with the links(?!) - and besides it's a browser setting anyway.