title: RefreshHit from cloudfront even with cache-control: max-age=0, no-store
body: <p>Cloudfront is getting a RefreshHit for a request that is not supposed to be cached at all.</p>
  <p><a href="https://i.stack.imgur.com/b5viL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b5viL.png" alt="enter image description here" /></a></p>
  <p>It shouldn't be cached because:</p>
  <ol>
  <li>It has <code>cache-control: max-age=0, no-store</code>;</li>
  <li>The Minimum TTL is 0; and</li>
  <li>I've created multiple invalidations (on <code>/*</code>) so this cached resource isn't from some historical deploy</li>
  </ol>
  <p><a href="https://i.stack.imgur.com/SGpZv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SGpZv.png" alt="enter image description here" /></a></p>
  <p>Any idea why I'm getting RefreshHits?</p>
  <p>I also tried modifying Cache-Control to be <code>cache-control no-store, stale-if-error=0</code>, creating a new invalidation on <code>/*</code> and now I'm seeing a cache hit (this time in Firefox):</p>
  <p><a href="https://i.stack.imgur.com/1SfiZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1SfiZ.png" alt="enter image description here" /></a></p>