Ruby on rails 3 普莱斯克vs rails3资产

Ruby on rails 3 普莱斯克vs rails3资产,ruby-on-rails-3,asset-pipeline,plesk,Ruby On Rails 3,Asset Pipeline,Plesk,我接管了一个笨拙安装的Rails应用程序。它的资产破产了。Chrome审计报告: > 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应用程序。它的资产破产了。Chrome审计报告:

> 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.
这显然搅乱了我们的网络。怎么办?在Rails land或Plesk的vhost.conf文件中,您在哪里添加了一行配置,以便输出正确的HTTP头


请不要告诉我“只是重建资产”-重建有点中断。

如果您只想调整当前域的web服务器配置,请查看Andre Spannig的页面:。 这曾经在另一个问题上帮助过我


也许有更好的方法通过Rails,但我现在还不知道。

tx no-I-ran/usr/local/psa/admin/bin/httpdmng——重新配置域。。。而错误依然存在。是的,我将这个剪报添加到vhost.conf:ExpiresDefault“访问加1年”(这个编辑系统糟透了!)添加/ExpiresActive On/ExpiresDefault A1209600,然后重建conf,然后重新启动apachectl,所有这些都修复了它。德克萨斯州!