我使用webpagetest知道我的網站performance.I我發現緩存靜態內容,即「靜態資產的槓桿瀏覽器緩存:88/100」的問題提高網站的性能緩存靜態內容問題
失敗 - (無最大值-age or expires)
我該如何解決這個問題?
我htaccess的樣子:
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/png
AddOutputFilterByType DEFLATE image/jpg
AddOutputFilterByType DEFLATE image/gif
# Or, compress certain file types by extension:
<ifModule mod_deflate.c>
<filesMatch ".(js|css|html|htm|php|jpg|jpeg|woff|eot)$">
SetOutputFilter DEFLATE
</FilesMatch>
</ifModule>
# Direct Apache to send all HTML output to the mod_pagespeed output handler.
AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
感謝
我試過,但得到同樣的味精「靜態資產的槓桿瀏覽器緩存:77/100」 失敗 - (無最大年齡或到期) – user2393759
如果您張貼網站的URL我可以看看它的一些更適合你。 –
http://www.tradesmartonline.in/ – user2393759