缓慢资产红宝石1.9.3,马科斯,铁轨3.2 [英] Slow assets ruby 1.9.3, macos, rails 3.2
问题描述
我的设置:
- RVM
- Ruby-1.9.3@p125 li>
- Rails 3.2.0
- Mac OS 10.7.3
我试过从webrick
到mongrel
和thin
,使用rails-dev-tweaks gem
,将缓存类设置为true和false。所有这一切都没有帮助,我坚持为什么它的工作速度只有在铬,而不是在Firefox?此外,这是操作系统的全新设置,也许我错过了一些东西,谢谢!
UPD。如果这个初始请求(例如来自新标签)一切顺利。请求只需2分钟即时刷新页面。我只是无法将这个问题包裹起来:(
)这似乎与名称解析有关。 / p>
使用(chrome)和
- localhost:3000 / / li>
- 127.0.0.1:3000/ - 卓越性能
- hostname.local:3000 / - 您描述的可怕表现
对我来说这很不幸,因为我在/ etc / hosts中设置了一个别名,指向127.0.0.1,这会影响页面的显示方式。在chrome中测试。
Im have a really weird issue, my assets served really slow in development(10 sec per file), thia happens only in Chrome(17.0.963.79). In Firefox all works just fine. My setup:
- RVM
- Ruby-1.9.3@p125
- Rails 3.2.0
- Mac OS 10.7.3
I have tried switch from
webrick
tomongrel
andthin
, usingrails-dev-tweaks gem
, set cache classes to true and false. All this didnt help, im stuck why it's work slow only in chrome and not in firefox? Also this is fresh setup of OS, maybe im missing something, thanks!
UPD. If this initial request(e.g. from new tab) all goes smooth. Request take near 2 minute only if im refreshing page. I just can't wrap my head around this issue :(
This seems to have something to do with name resolution.
Using (chrome) and
- localhost:3000/ -- great performance
- 127.0.0.1:3000/ -- great performance
- hostname.local:3000/ - Terrible performance as you describe
This is unfortunate for me, as I have an alias set up in /etc/hosts to point to 127.0.0.1 that affects how the page gets displayed. So no testing of that in chrome.
这篇关于缓慢资产红宝石1.9.3,马科斯,铁轨3.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!