对于动态页面,缓存的代码必须放在任何HTML标签输出之前,否则将会出错。
<?php header('Cache-Control:no-cache,must-revalidate'); header('Pragma:no-cache'); header("Expires:0"); ?>