如题,有时候我们希望我们修改了PHP文件要让他在支付过程及时更新,需要用到以下设置,
HTML的设置方法
<meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Expires" content="0">
PHP的设置方法
header('Cache-Control:no-cache'); header('Pragma:no-cache'); header("Expires:0");