利用htaccess进行图片缓存加速Joomla加载速度

Moderator: eyesofkids

Locked
haiwasnm
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Thu Apr 05, 2007 1:32 pm
Contact:

利用htaccess进行图片缓存加速Joomla加载速度

Post by haiwasnm » Thu Apr 05, 2012 4:26 pm

原理很简单,Google Speed 推荐的做法。

# Image and Flash content Caching for One Month
<FilesMatch ”.(flv|gif|jpg|jpeg|png|ico|swf)$”>
Header set Cache-Control ”max-age=2592000″
</FilesMatch>

2592000为缓存时间一个月

 
 
Locked

Return to “Chinese Forum”