I am developing a rails app in chrome and would like to figure out how much data is being sent from the server to the browser(chrome). When I look at the "Network" tab, chrome shows the size of every request and then at the bottom tells me the total amount transferred. It seems that the total amount transferred is the sum of the 'size' column. Directly underneath each size item is a greyed out 'content' which seems to be the actual size of the file on the server. So for example, I have an image that is 2 kB on the server but the amount transferred is only 235 bytes. What is going on here?

有帮助吗?

解决方案

sprockets has an image compressor. I presume that is what's happening in your case.

https://github.com/botandrose/sprockets-image_compressor

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top