利用协议控制缓存
相关模块: mod_expires
ExpiresActive On
ExpiresByType image/jpeg "access plus 1 month"
利用协议取消缓存
客户端:
Cache-Control:no-cache
Pragma:no-cache
服务器端 清除
<FilesMatch "\.(jpg|gif|png)$">
Cache-Control:no-cache
Header unset Etag
Header unset Last-Modified
</FilesMatch>
mod_header 模块