gyng / save-in

WebExtension for saving media, links, or selections into user-defined directories
MIT License
199 stars 25 forks source link

[Feature Request][Firefox] Add option to download image from browser cache #148

Open Artnel opened 3 years ago

Artnel commented 3 years ago

Please add option to download image form browser cache for Firefox browser (I don't know if it is possible for Chrome).

Saving images directly from cache is much faster (especially for large images and sites with slow servers). Additionally it helps to save internet plan.

Image Picka extension has this feature implemented so maybe you can find necessary solutions there. https://github.com/eight04/image-picka

gyng commented 3 years ago

Skimmed through Image Picka (https://github.com/eight04/image-picka/blob/master/src/lib/image-cache.js). Looks like it's storing images in a separate cache from the browser and I think it increases memory usage? Not the approach I'm too keen on taking.

I believe Firefox is already using the built-in browser cache for downloading images, based off some bug with pixiv I encountered a while ago. However I don't have any control over this behaviour.