title: Browser (Chrome) does not cache assets from CloudFront
body: <p>Scenario:</p>
  <p>I setup a Cloudfront distribuition from custom origin (my server) to progressive stream a list of mp4 video files.</p>
  <p>These files are looped and played thru the Chrome native HTML5 video api. Every time the video ends Chrome make another request to the file.</p>
  <p>When playing the file from my server, Chrome returns</p>
  <pre><code>Status Code:206 Partial Content (from cache)
  </code></pre>
  <p>on each request, while when playing the same file from CloudFront, <strong>Chrome never caches the file and keeps downloading it at each request!</strong></p>
  <p>These are the response headers from Amazon CloudFront in Chrome:</p>
  <pre><code>HTTP/1.0 206 Partial Content
  Date: Mon, 19 Mar 2012 19:47:44 GMT
  Server: Apache
  Last-Modified: Mon, 19 Mar 2012 12:35:37 GMT
  ETag: &quot;a78e87ba-335d8e-4bb97cb9f887f&quot;
  Accept-Ranges: bytes
  Content-Type: video/mp4
  Content-Range: bytes 4228-3366285/3366286
  Content-Length: 3362058
  Age: 3819
  X-Cache: Hit from cloudfront
  X-Amz-Cf-Id: xxxxxx
  Via: 1.0 xxxxxx.cloudfront.net (CloudFront)
  Connection: keep-alive 
  </code></pre>
  <p>Response Headers in Chrome of the same file from my server (origin):</p>
  <pre><code>HTTP/1.1 206 Partial Content
  Date: Mon, 19 Mar 2012 20:50:40 GMT
  Server: Apache
  Last-Modified: Mon, 19 Mar 2012 12:35:37 GMT
  ETag: &quot;a78e87ba-335d8e-4bb97cb9f887f&quot;
  Accept-Ranges: bytes
  Content-Length: 3366286
  Content-Range: bytes 0-3366285/3366286
  Keep-Alive: timeout=2, max=256
  Connection: Keep-Alive
  Content-Type: video/mp4
  </code></pre>
  <p>Am I missing something?</p>
  <p>Maybe the reason is in the lack of the <code>Keep-Alive</code> header from CloudFront response? or maybe in the different HTTP protocol version (1.0 vs 1.1)?</p>