faster-image icon indicating copy to clipboard operation
faster-image copied to clipboard

Feature request: Prefetch with caching support

Open afiller opened this issue 8 months ago • 0 comments

As I have realized - despite my expectations - the prefetching is only into memory, is this correct? I expected it to lead to disc caching as well, which would help me much more than a memory prefetching.

Thus my question/wish would be: Do you think it's complicated to add the cachePolicy options to the prefetch as well. Especially cachePolicy: discNoCacheControl would help a lot to prefetch and cache lateron often used online images.

Suggestion:

prefetch([imageURLs], {options}) -> options could be cachePolicy at first:

prefetch(['https://image-url',], { cachePolicy: 'discNoCacheControl' })

==> Could lead to a real preCACHING, not only preFETCHING

afiller avatar Apr 15 '25 11:04 afiller