Is javascript browser cache essentially a key/value store with the key the server path of the object and the value the requested object?

I’m just wondering if I preload a file in javascript with an async/await fetch, then later in the code I submit a request to fetch that file again…will any http requests to that path return from the javascript cache first?

This would essentially make the js cache a key/value cache with the key being the server side path and the value being the file.

Any caveats I should be aware of?