As far as I know, you (as a person writing server code) have no control over this.  
The best you can hope for is that the browser is smart enough to cache the image.

One thing I can think of, though, is to make sure that the browser "believes" that the 
images are static.  Make sure that references to them do not have parameters (for 
generated images, epecially).  E.g. <img src="/myapp/images/image1234.gif"> [GOOD] as 
opposed to <img src="/myapp/imageGenerator?imagenum=1234"> [BAD].  I just 
hypothesizing, though.

You could set up a an accelerator between your web server and the outside world, as 
well.  That still won't force browsers to cache images.  But, if your images are 
(infrequently) generated, then an accelerator will cache them and prevent your 
application/image server from having to generate them constantly for every web hit.

Paul


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: August 29, 2002 7:21 AM
To: [EMAIL PROTECTED]
Subject: Client Side Caching


Is there a possibility to use Client Side Caching?
For example to Save a picture and reload it from the
browsers cache, when nothing has changed.

or

A Page which contains contents from a Database and when 
nothing has changed on the DB reload the old page from the cache.

Thanks Matthias

----------------------------------------------------------------------------
----------------
Hanel Matthias
Fachinformatiker (Anwendungsentwicklung) in Ausbildung
Logistik World GmbH     Fon:    +49-841-9014-300
Marie-Curie-Strasse 6   Fax:    +49-841-9014-302 
D- 85055 Ingolstadt     mailto:[EMAIL PROTECTED]
----------------------------------------------------------------------------
----------------


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to