cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alten, Jelle Paul (sds-sp)" <jelle.paul.al...@ordina.nl>
Subject RE: problem with caching of jpegs by Internet Explorer
Date Wed, 05 Nov 2003 07:31:17 GMT

What I do to force a refresh in ms-ie: change the src-uri of the image every
time the html is served: add a timestamp-generated nr to the uri like this:
    <img src="photo.jpg?nr=34292385765"/>

next time the html is requested make sure the nr-value is different:
    <img src="photo.jpg?nr=34292385798"/>

You can do this server side, or with javascript client side.
Don't do this in a production situation unless you really have to...

Greetings,

Jelle

-----Original Message-----
From: Conal Tuohy
To: users@cocoon.apache.org
Sent: 4-11-2003 23:30
Subject: RE: problem with caching of jpegs by Internet Explorer 

You could test for access by IE using the browser selector, and serve
them the file with an explicit expiry in the pipeline:

<map:parameter name="expires" value="access plus 5 minutes"/>

Cheers

Con

> -----Original Message-----
> From: jim basilakis [mailto:jimbo@ee.unsw.edu.au]
> Sent: Wednesday, 5 November 2003 11:20 a.m.
> To: users@cocoon.apache.org
> Subject: re: problem with caching of jpegs by Internet Explorer 
> 
> 
> Hi,
> 
> I have been creating a web site with Cocoon 2.1.2 that 
> dynamically generates
> jpeg/png images.
> 
> The problem is that when the site is viewed by Internet 
> Explorer, old cached
> images are view and the jpegs/png images do not refresh despite being
> modified from the last access to the site. This can be fixed 
> on the client
> side by selecting on the browser 'Internet Options -> 
> Settings -> Check for
> newer version of stored pages' and changing the setting to 
> 'Every visit to
> the page' instead of 'Automatically' but this is not a good 
> solution if
> others wish to view the page.
> 
> Is there anything I can do in Cocoon to make sure that changes to the
> jpegs/pngs are shown whenever the site is accessed?
> 
> Thanks in advance,
> Jim
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message