YouTube achieved quite a feat when they made youtube videos work with cache. However, this is causing a problem on my ajax site and would like to know if there is a way to disable youtube videos being cached. Especially in Internet Explorer.
I cannot disable caching for the whole page as I need caching to work for images and other content for speed reasons.
Any one know any solutions?
Just make sure that each time user is downloading from an unique URL. Your player code contains something like this:
That is URL to the YouTube player. All you have to do is add new randomly generated token at the end, like (PHP example):
Each time you visit the page that URL will contain an unique token so the browser won’t use any cache mechanisms.