PDA

View Full Version : Iframe SSI script II



vanbao
10-18-2006, 03:34 PM
Iframe SSI script II

http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm

Please help. I am using this script and I have a small problem with caching. When I make changes to the external pages that are referenced, the changes don't show up until I clear my cache. Is there any way we can make the changes in the referenced page show up without having to clear the cache in the browser each time.

Thank you.

ddadmin
10-18-2006, 10:42 PM
You could try using the "no-cache" meta tag in the HEAD section of the external pages:


<META HTTP-EQUIV="Pragma" CONTENT="no-cache" />

In IE, a buffer bug means you may in fact need to add this tag twice, one at the top, and one at the bottom of your page, with the header tag and all:


<HTML>
<HEAD>
<TITLE>Iframe content</TITLE>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache" />
</HEAD>
<BODY>

My body here. My body here.

</BODY>
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache" />
</HEAD>
</HTML>

You can read about the bug here (http://support.microsoft.com/kb/222064/). Note that even with the no-cache tag added, not all browsers will truly completely not cache a page, so this may not work as you expected.

vanbao
10-19-2006, 05:56 PM
Thank you so much. It works perfectly.

I love this DD.