0

网站:http ://taylorsbackyardcenter.ca/store

因此,我正在完成一个OSCommerce站点,并且正在实施压缩、缓存和站点优化。我遇到了放气的问题。

Page Speed 和 YSlow 都告诉我:

Compressing http://taylorsbackyardcenter.ca/store/includes/functions/js/jquery.min.js could save 46.5KiB (65% reduction).
Compressing http://taylorsbackyardcenter.ca/store/includes/sts_templates/taylor/taylor_stylesheet.css could save 9.7KiB (79% reduction).

我认为我的 .htaccess 文件是正确的:

#############################
## Site Speed/Optimization ##
#############################
# MIME Type Fixes
AddType image/x-icon .ico
AddType text/javascript .js
AddType text/css .css
#############################
# Compress
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css 
AddOutputFilterByType DEFLATE text/javascript application/x-javascript application/javascript
#############################
# Proxy fix
Header append Vary User-Agent env=!dont-vary
# Set ETag
FileETag MTime Size
# Public Caching
Header set Cache-Control "public, no-transform"
# Expires Headers
ExpiresActive on
ExpiresByType text/html "access plus 30 seconds"
ExpiresByType text/css "access plus 3 months"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType image/gif "access plus 3 months"
ExpiresByType image/jpeg "access plus 3 months"
ExpiresByType image/png "access plus 3 months"
ExpiresByType image/x-icon "access plus 1 year"
#############################

请指教

4

1 回答 1

0

通常他们的意思是缩小,或删除无用的空白空间,应该有一个链接说查看优化版本或下载优化版本。只需将其保存在旧的顶部并将其上传到您的服务器即可。那应该照顾它。

于 2011-03-13T06:36:58.417 回答