<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Network Cache: do not use disk cache for Fetch media loads"
   href="https://bugs.webkit.org/show_bug.cgi?id=235535">235535</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Network Cache: do not use disk cache for Fetch media loads
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Media
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned@lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>olivier.blin@softathome.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>cdumez@apple.com, darin@apple.com, eocanha@igalia.com, jer.noble@apple.com, koivisto@iki.fi, loic.yhuel@softathome.com, mcatanzaro@gnome.org, pnormand@igalia.com, zdobersek@igalia.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In <a href="https://commits.webkit.org/r183467">r183467</a>, checks have been added to avoid putting media resources from XHR requests in the disk cache, since they are likely specific to MSE streaming.
But this does not check for Fetch requests, which can also be used for MSE streaming.

This has been found by using Shaka Player on a low-end device.
Playing high quality MSE content was pushing to the disk cache faster than the device could handle.
Media data was accumulating in the the background IOQueue thread, and the NetworkProcess memory was constantly increasing.

Recently, similar checks have been added for the MSE IPC overhead in <a href="https://commits.webkit.org/r282003">r282003</a>.
Loïc found a few differences:
- it supports ResourceLoadInfo::Type::XMLHTTPRequest and ResourceLoadInfo::Type::Fetch, but not ResourceLoadInfo::Type::Media
- it has a different definition of isMediaMIMEType, which adds application/octet-stream to the audio/* and video/* we have in makeStoreDecision()

Should we attempt to factorize these checks?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>