I am caching webpages using the CacheStorage API. It is possible in some way to programatically cache the files references in the <script> tags on that page?
For example I am caching hello.html:
<html>
<h1>Hello world!</h1>
<script src="link/to/script.js"></script>
</html>
After caching this page the cache should have both hello.html and link/to/script.js cached.