J
Jarson
I am building a dashboard client that will, among other things, every
half-hour update images that show local weather and other graphics. The
images change over time, so what my JavaScript fetches must not come from
the browser cache. The servlets that generate the images set the httpd
Expires date to yesterday to prevent this, but it doesn't seem to be
recognized by the JavaScript.
A work-around is to append a unique parameter after the image name (i.e.
image += '?' new Date().getTime() ) however, this is a hack that seems
needed only because the Image object is not properly recognizing expired
data. Am I right? Is there a better way to tell the object to load from the
source and not the cache?
Jarson
(jarson from sygration, that's a dot com company if you would like to email
me)
half-hour update images that show local weather and other graphics. The
images change over time, so what my JavaScript fetches must not come from
the browser cache. The servlets that generate the images set the httpd
Expires date to yesterday to prevent this, but it doesn't seem to be
recognized by the JavaScript.
A work-around is to append a unique parameter after the image name (i.e.
image += '?' new Date().getTime() ) however, this is a hack that seems
needed only because the Image object is not properly recognizing expired
data. Am I right? Is there a better way to tell the object to load from the
source and not the cache?
Jarson
(jarson from sygration, that's a dot com company if you would like to email
me)