#设置静态页面的缓存
<FilesMatch “.(html|htm)$”>
Header set Cache-Control “max-age=86400″
< /FilesMatch>
#设置JS,CSS样式和文本的缓存
<FilesMatch “.(js|css|txt)$”>
Header set Cache-Control “max-age=259200″
< /FilesMatch>
#设置图片和动画格式文件的缓存
<FilesMatch “.(flv|swf|ico|gif|jpg|jpeg|png)$”>
Header set Cache-Control “max-age=259200″
< /FilesMatch>
#关闭动态页面的缓存
<FilesMatch “\.(pl|php|cgi|spl|scgi|fcgi)$”>
Header unset Cache-Control
< /FilesMatch>