title: Why does Content-Length header field from actual filesize in Chrome Dev Tools?
body: <p>I'm trying to collect network statistics of Chrome using HTTP/2 and HTTP/3 to connect to a Caddy v2 server. Compression is disabled to enforce certain filesizes.</p>
  
  <p>The Chrome Dev Tools display a filesize of ~3-4kB, even though the files do have a size of 100kB as shown in the header, which also have a similar filesize on the server (Picture 1-3). Why does Chrome display this by far to small filesize?</p>
  
  <p>(Even though I'm using http3 here, the same happens for HTTP/2)</p>
  
  <p><a href="https://i.stack.imgur.com/rvGRd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rvGRd.png" alt="Chrome Dev Tools"></a>
  <a href="https://i.stack.imgur.com/FoM1b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FoM1b.png" alt="Header"></a>
  <a href="https://i.stack.imgur.com/2oyOQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2oyOQ.png" alt="enter image description here"></a></p>
  
  <p>The Command im Running chrome with:</p>
  
  <pre><code>google-chrome-unstable -media-cache-size=1 --disk-cache-size=1 --enable-quic --quic-version="h3-27" --enable-logging=stderr --v=1 immocodes.com &gt; ~/log.txt
  </code></pre>
  
  <p>My versions:</p>
  
  <pre><code>Chrome Dev Version 84.0.4143.2 (Official Build) dev (64-bit) 
  Client Linux Ideapad 5.3.0-51-generic #44-Ubuntu SMP Wed Apr 22 21:09:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux 
  Server: Caddy 2.0.0
  </code></pre>
  
  <p>My Server Config:</p>
  
  <pre><code>{
      experimental_http3 }
  
  www.immocodes.com {
          root * /usr/share/caddy/
          templates
          file_server
          encode zstd gzip }
  
  # redirect no-www to www immocodes.com {
          redir https://www.immocodes.com }
  </code></pre>
  
  <p><strong>Edit 1: HTTP/2 + Hovering</strong></p>
  
  <p><a href="https://i.stack.imgur.com/9l7fs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9l7fs.png" alt="HTTP/2 + Hovering"></a></p>