Is that a plausible solution … ?
It depends on whether you control the HTML being loaded into your web page. Scheme URL handlers do not let you intercept HTTP[S] requests, so for this to work you have to make sure that your images are referenced with a custom URL scheme. If you can tweak your HTML to do that then, sure, a scheme URL handler will let you intercept the request and cache however you want.
Then again, if you have that level of control over the website being loaded, tweaking the cache parameters is likely to be a much easier path forward (-:
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"