For continued disscussion on this topic : Can I force an image to reload?
Roger
06-30-2000, 03:12 AM
We justed started serving our news pages through Storyserver and part of the design incorporates images with fixed file names on the index pages. Since a new image is uploaded at least once per day, we are running into broswer caching problems with old images appear next to new captions. Is there a way with Javascript to force these images to reload once per day or even every time the page is loaded? Does the reload function work on objects or just windows?
Arielladog
06-30-2000, 03:17 AM
put these codes into the head of this document to stop it from being cached.
<META HTTP-EQUIV="expires" CONTENT="0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
Roger
06-30-2000, 03:27 AM
Thanks,
the meta tags were actually my backup plan as I was hoping not to reload the entire page every time a user visits to keep the load time to a minimum.
I've been researching this for a while, and it looks like metas may be the best option as I haven't been able to find anything on reloading idividual images. The only other solution I've found is to use a server-side caching control file (.htaccess).
But I'm still hoping to find a solution that just targets images.
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.