views:

84

answers:

1

I have a webpage that plays about 15 videos at any given time. The videos change on a weekly basis, which are loaded from an external XML file.

Please look at the site here

www.hqwebvideos.com

The problem is that when my prospects view my site for the 2nd or third or fourth time, the previous XML video data is stored in their cache. Incidentally, old content is being viewed on the webpage. I want them to return to the site and load the new content each time. Basically, I want to figure out a way so that browsers will not store cookies or data in the cache when they go to my site. Any ideas?

+4  A: 

You can use the Cache-Control http header to control how long data is cached before it expires. For example:

Cache-Control: max-age=3600, must-revalidate

Would indicate that the cache expires in 1 hour. You can read more about it here.

Jess
How do I put that in the head? Just like this:<Cache-Control: max-age=3600, must-revalidate>
Not HTML header, but HTTP header. How is your site written? ASP? PHP? Other?
elcuco