alexlobera / gatsby-source-sanity-transform-images

Gatsby plugin
https://www.gatsbyjs.org/packages/gatsby-source-sanity-transform-images/
19 stars 7 forks source link

Caching already downloaded images? #6

Open kevinfoerster opened 4 years ago

kevinfoerster commented 4 years ago

Hi,

I was wondering, is there any way, the plugin could cache the downloaded resources instead of redownloading them every time I run gatsby develop?

at the moment it looks like this images are not cached and will be discarded on each restart… which takes a while to download (currently downloading 1700+ images for each run).

chandlervdw commented 4 years ago

+1 for this

alexlobera commented 4 years ago

@kevinfoerster thanks for your feedback. I have the same issue and I can relate to that. Caching and invalidating cached data properly is a hard problem. I'll think about it.

jlarmstrongiv commented 3 years ago

I definitely agree this would be a great addition to have by default. I looked at another similar package gatsby-plugin-remote-images and saw that their implementation uses gatsby’s caching (1, 2). I think we could adapt it here too 😄 did anyone find a stopgap solution in the meantime?