小编Ran*_*hir的帖子

Gzip压缩和利用浏览器缓存不适用于我的商店

我正在尝试优化我的商店,我在我的.htaccess文件中添加了Gzip代码和杠杆浏览器缓存代码:

# Leverage browser caching using mod_expires #
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType application/pdf "access plus 1 month"
    ExpiresByType text/x-javascript "access plus 1 month"
    ExpiresByType application/x-shockwave-flash "access plus 1 month"
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresDefault "access plus 2 days"
</IfModule>
# End of Leverage browser caching …
Run Code Online (Sandbox Code Playgroud)

php optimization .htaccess magento-1.9

4
推荐指数
1
解决办法
511
查看次数

标签 统计

.htaccess ×1

magento-1.9 ×1

optimization ×1

php ×1