PDA

View Full Version : Safari iFrame caching issue



mvarlik
06 Mar 2009, 05:58 AM
Hi,

I've got some trouble with safari caching. The problem is that the content of an iframe is cached in safari and so changes to that content is not visible. To prefent safari to cache the content I added the following to the <head> section of my documents:



<meta HTTP-EQUIV=“Cache-Control” CONTENT=“no-cache”>
<meta HTTP-EQUIV=“Pragma” CONTENT=“no-cache”>
<meta HTTP-EQUIV=“Expires” CONTENT=“0”>


And I created the iframe this way:


<iframe src="content.html" id="javascript:'ID_' + new Date().getTime();"></iframe>


Unfortunately it doesn't work. Does anyone have a hint?

Best regards,
Michael