【发布时间】:2013-01-19 16:17:54
【问题描述】:
用于缓存控制、mod重写和php头标签的html元标签
<filesMatch ".(ico|gif|jpg|jpeg|png|flv|pdf)$">
Header set Cache-Control "max-age=29030400"
</filesMatch>
<meta http-equiv="Cache-control" content="public">
header('Expires: Thu, 01-Jan-70 00:00:01 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
哪个缓存系统更好,为什么? php、htaccess 还是 meta 标签?
【问题讨论】: