0
我接管了一個笨拙安裝的Rails應用程序。其資產已經破產。 Chrome審計回報:Plesk vs rails3資產
> Leverage browser caching
The following resources are missing a cache expiration.
Resources that do not specify an expiration may not be cached by browsers:
jquery-1.8.3.js
jquery-ui-1.8.17.custom.min.js
rails.js
application.js
jquery.ui.base.css
jquery.ui.theme.css
...etc.
這顯然會攪動我們的網絡。 Wat嗎?在Rails-land或Plesk的vhost.conf文件中,是否添加了一行配置,以便正確的HTTP標頭出去?
請不要告訴我「只是重建資產」 - 重建有點失敗。
tx no - 我運行/ usr/local/psa/admin/bin/httpdmng --reconfigure-domain ...並且錯誤依然存在。是的,我添加了這個剪輯到vhost.conf: ExpiresDefault「access plus 1 year」 (和這個編輯系統SUCKS! ) –
Phlip
2013-05-10 19:15:35
添加/ExpiresActive On/ExpiresDefault A1209600 ...,然後重建conf,然後apachectl restart,全部修復它。 TX! –
Phlip
2013-05-10 19:22:46