[ back to toc ]

How to refresh page without meta tag

Date: 2002/05/12 19:56

Q:
I redirect my page having pictures. Somehow, browsers don't update the new
pictures because those pictures share the same name and the browsers
think they are duplicate and eventually use the old picture.

I can't use meta tag<..refresh..> because my page will change only when
click summit.
Do you have any idea?

Thank you

A:
Use some JavaScript to generate the HTML code that references the pictures
and put random string to the URL. Like

src="/img/myimg.gif?123243535"

it will not disturb the web server (well, depends on the server, but most
servers do not care). The client on the other hand will see a different
URL.

regards,
Peter

[ back to toc ]