I have a web app, that serves images of scanned old documents with their transcript, it's a lot of images about 5 gigs of images, and the client needs to browse them on regular basis.
I need a solution to cache the images in the client side, since the images are immutable, they should be fetched from the server only once.
That would allow you to cache a huge amount of GB on the clients computer. I can't see how that would work out long-term (user clearing cache, changing browser, computer, etc). This sounds like a poor solution to the problem.
With that being said, you should look into IndexedDB:
Notes: