Browser cache channelUrl和过时页面,如何避免

Browser cache channelUrl和过时页面,如何避免,browser-cache,facebook-social-plugins,facebook-fbml,facebook-likebox,facebook-java-sdk,Browser Cache,Facebook Social Plugins,Facebook Fbml,Facebook Likebox,Facebook Java Sdk,我在一个网站上使用FB Javascript SDK,看来channel.php文件迫使我的内容不刷新。在channel.php文件中,我有以下内容: <?php $cache_expire = 60*60*24*365; header("Pragma: public"); header("Cache-Control: maxage=".$cache_expire); header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cac

我在一个网站上使用FB Javascript SDK,看来channel.php文件迫使我的内容不刷新。在channel.php文件中,我有以下内容:

<?php
 $cache_expire = 60*60*24*365;
 header("Pragma: public");
 header("Cache-Control: maxage=".$cache_expire);
 header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT');
?> 
<script type="text/javascript" src="//connect.facebook.net/en_US/all.js"></script>

需要使用SDK的网站的每一页的开头标签下方都包含以下内容:

<div id="fb-root"></div>
<script type="text/javascript">
  window.fbAsyncInit = function() {
    FB.init({
      appId  : '<?php echo $cfg['fb_app_id']; ?>',
      status : true, // check login status
      cookie : true, // enable cookies to allow the server to access the session
      xfbml  : true,  // parse XFBML
      channelUrl  : '<?php echo $cfg['http_prefix'].$cfg['domain_name'].'/'; ?>channel.php', // Custom Channel URL
      oauth : true //enables OAuth 2.0
    });
  };

  (function() {
    var e = document.createElement('script');
    e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
    e.async = true;
    document.getElementById('fb-root').appendChild(e);
  }());
(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) {return;}
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#appId=<?php echo $cfg['fb_app_id']; ?>&xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>

window.fbAsyninit=函数(){
FB.init({
appId:“”,
状态:true,//检查登录状态
cookie:true,//启用cookie以允许服务器访问会话
xfbml:true,//解析xfbml
channelUrl:'channel.php',//自定义频道URL
oauth:true//启用oauth 2.0
});
};
(功能(){
var e=document.createElement('script');
e、 src=document.location.protocol+'//connect.facebook.net/en_US/all.js';
e、 异步=真;
document.getElementById('fb-root').appendChild(e);
}());
(功能(d、s、id){
var js,fjs=d.getElementsByTagName[0];
if(d.getElementById(id)){return;}
js=d.createElement;js.id=id;
js.src=“//connect.facebook.net/en_US/all.js#appId=&xfbml=1”;
fjs.parentNode.insertBefore(js,fjs);
}(文档“脚本”、“facebook jssdk”);
在浏览器缓存中,调用此文件的页面似乎已过时。我离开办公室一天,有一次返回,页面仍然包含旧内容,直到我在页面上按下shift键重新加载。有什么想法吗