新手问题 很奇怪的问题

xiaoxiao · 2013年08月27日 · 最后由 xiaoxiao 回复于 2013年08月27日 · 2317 次阅读

为什么我每次刷新页面http://localhost:3000/assets/application.css 终端都只出现一条信息 [2013-08-27 10:48:07] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true 而没有 Started GET "/assets/application.css" for 127.0.0.1 at 2013-08-27 10:51:32 +0800 Served asset /application.css - 304 Not Modified (0ms) 这条信息。 难道我无意中开启了什么配置或模式。 我现在的调试环境在开发模式下。为什么我会发现这问题就是因为之前我的一个项目修改了 application.css 这个文件,但是每次输入http://localhost:3000/assets/application.cssapp,使用端口1000,在同一浏览器下测试。发现了这个问题。。。这说明不是浏览器缓存问题,或ruby问题,一定是开启了什么配置或模式。。。。求解答得到的都一样,所以我新建了一个

You can also edit the file “C:\RailsInstaller\Ruby1.9.3\lib\ruby\1.9.1\webrick\httpresponse.rb”, line 205 and add red part to avoid very annoying warning

if chunked? || @header['content-length'] || @status == 304 || @status == 204

webrick 问题

add gem 'thin' to Gemfile and bundle

无解的问题。我把原来项目的 app 文件夹,config 文件夹复制到新建的项目里就能出现 Started GET "/assets/application.css" for 127.0.0.1 at 2013-08-27 10:51:32 +0800 Served asset /application.css - 304 Not Modified (0ms) 这条信息了。。。。非常奇怪的 bug

需要 登录 后方可回复, 如果你还没有账号请 注册新账号