Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy is Firefox ignoring cache control on Range-based queries?
    primarykey
    data
    text
    <p>Web servers have the ability to stream media (audio in this example) to browsers. Browsers use HTML5 controls to play the media. What I'm discovering, however, is that Firefox is caching the media, even though I (believe I) explicitly tell it not to. I have a hunch that it has something to do with the 206 Partial Content response as a regular "non-range" GET with a full 200 OK response does not get cached. Chrome (27) handles this OK, but Firefox (21) does not:</p> <pre><code>HTTP/1.1 206 Partial Content Date: Tue, 21 May 2013 17:24:29 GMT Expires: 0 Pragma: no-cache Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Content-Disposition: attachment; filename="audio.wav" Content-Type: audio/x-wav Connection: close Accept-Ranges: bytes Content-Range: bytes 0-218923/218924 </code></pre> <p>Anyone got any ideas as to how to make Firefox not cache this? When I click to play other audio files that are named the same, Firefox simply plays the first one that was clicked (cached) in a session as opposed to re-fetching the new one from the server.</p> <p>Note that <a href="https://stackoverflow.com/questions/49547/making-sure-a-web-page-is-not-cached-across-all-browsers">this question</a> seems to directly ask/answer this, but it does not work... I use the headers mentioned.</p> <p>Thanks for any help.</p> <p><strong>EDIT</strong>: I also tried adding an ETag: header, but still Firefox caches the original response.</p> <p><strong>EDIT</strong>: Including a <code>Content-Length:</code> header to match (218924 in this example) does not seem to impact the issue.</p> <p><strong>EDIT</strong>: I have filed a bug at bugzilla.mozilla.org but no activity on it at this point.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload