what does ?body=1 do in rails 3.1 asset pipeline?
Trawling through the Sprocket source code we find: # Returns a 200 OK response tuple def ok_response(asset, env) if body_only?(env) [ 200, headers(env, asset, Rack::Utils.bytesize(asset.body)), [asset.body] ] else [ 200, headers(env, asset, asset.length), asset ] end end body_only? is set when ?body=1 or true For a static asset, Asset.body is defined as: def body # … Read more