开发者

Best way to flush or clear Ajax "temp" stuffs in IE7

开发者 https://www.devze.com 2022-12-29 23:23 出处:网络
Can any one please let me know, that, i need to clear the \"temp\" files every time i run the ajax process usi开发者_StackOverflow社区ng php.hi you please try this code on your header.tpl file. or use

Can any one please let me know, that, i need to clear the "temp" files every time i run the ajax process usi开发者_StackOverflow社区ng php.


hi you please try this code on your header.tpl file. or use this as server side script. see here.

<meta http-equiv="imagetoolbar" content="no" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="Tue,01 Dec 1990 06:30:00 GMT">

or

echo '<meta http-equiv="imagetoolbar" content="no" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="Tue,01 Dec 1990 06:30:00 GMT">';


To avoid caching, you can append a unique number to the URL, e.g.

var url = 'something.php?' + +new Date;
url; // => "something.php?1273750710315"
0

精彩评论

暂无评论...
验证码 换一张
取 消