jump 中的 success 能不能增加header参数

浏览:594 发布日期:2016/08/08 分类:ThinkPHP5专区
protected function error($msg = '', $url = null, $data = '', $wait = 3){
$this->cache_control();
return parent::error($msg, $url, $data, $wait);
}

protected function cache_control($time = null) {
if (empty($time))
$time = 60 * 60 * 24;
header ("Last-Modified: " .gmdate("D, d M Y H:i:s", time() )." GMT");
header ("Expires: " .gmdate("D, d M Y H:i:s", time() + $time )." GMT");
header ("Cache-Control: max-age=$time");
}


因为我的后台用了iframe,需要控制这个页面为不缓存,要不然Chrome会报错
最佳答案
评论( 相关
后面还有条评论,点击查看>>