sstephenson/sprockets — Issue #260: Sprockets truncates long JS responses
Author: jamesarosen
Created: 2011-12-15 20:21:27+00:00
State: open

Sometimes when I reload a page on Sprockets 2.0.x, all my Javascript is broken. When I check out the inspector, I find that all of the Javascript files have been truncated partway through. For example, this shows that "vendor.js" finished transferring:

![](https://img.skitch.com/20111215-pntpmgyabckxspd1ha99cdekyy.png)

Yet this shows that it got cut off in the middle:

![](https://img.skitch.com/20111215-cu4d4d4fatgbfe778umegjghja.png)

(It's a little hard to see the scrollbar on the right, but it's there, showing that I'm at the bottom of the file.)

The same thing happens in any browser or when using `curl`, and does not depend on referrers or cookies. I haven't dug any deeper than that, but I'm about to start adding some logging to the Sprockets source. I'll report any further findings.