Automatically refresh page

I have an html page on my site that contains some .jpg files.  These files change frequently, so I would like to add code to make the user's browser load my pictures rather than the old ones they have in storage in their computer.  How can I do this?
Lee5Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

maneshrCommented:
you cannot load individual images using plain HTML, but you CAN load/refresh the entire page.

to do so, add the following tag to your page

<META HTTP-EQUIV="REFRESH" CONTENT="2; URL=yourfile.html">
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dmaryakhCommented:
You may also consider loading your images though the JavaScript as Image objects and then use setTimeout() or setInterval() to update the images

0
johnny99Commented:
Or how about this -- use different names for the images, and use JavaScript to write the image names based on the date or other variable.

The only way to really make sure people don't have cached images showing up is to change the image name and the HTML.

For instance, you could force all your images to reload by renaming the folder they were in from IMG/ to IMAGE/ -- but then you'd have to do a GREP on all your pages so that the code referred to that folder.
0
Lee5Author Commented:
thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.