[thelist] Appending a querystring to an image file name: is it safe?

Koutoulas, Pete PKOUTOUL at Fayette.k12.ky.us
Thu Feb 20 12:42:14 CST 2003


Hi gang:

I have an image on a page that changes occasionally, but for numerous
reasons, I need to keep the image name constant. The problem that develops
from this is many people's browsers never request an update for the image so
those people never see the changed image -- they continue to get a
locally-cached version. In the past, I have employed a trick to deal with
caching pages by appending a bogus querystring to the end of the link
requesting the page: pagename.asp?nc=12345. When the page is updated, I
change the number in the querystring. This works fine for asp or html pages.
Today I tried doing the same for the image in question, i.e., <img
src="/images/myimage.gif?nc=12345" etc...> This seems to work fine in the
few browsers I have around here. My question to you all is this: is this
kludge safe in all browsers or will it break in some? Anyone know of a
better way short of renaming the image with each change?

___________________________________
Pete Koutoulas, Website Manager
Fayette County Public Schools
701 E. Main Street
Lexington, KY 40502
Voice (859) 381-4138
Fax (859) 381-4763
webmaster at fcps.net
www.fcps.net




This student or staff email originated from Fayette County Public Schools in
Lexington, KY.
Please report instances of abuse or inappropriate content to
postmaster at fcps.net




More information about the thelist mailing list