11ty / eleventy-img

Utility to perform build-time image transformations.

Home Page:https://www.11ty.dev/docs/plugins/image/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhancement - Identify remote images in filename

zeroby0 opened this issue · comments

Filenames of local images are hashes of their actual content. So websites can make browsers cache them forever.

But filenames of remote images are hashes of their URL. So they should not be cached - their content could change while their URL and filename remain the same.

If there is a way to identify remote images, websites can make browsers cache local images forever, and cache remote images for a limited duration.

I propose remote images be stored at /img/remote/{hash}.jpg or /img/remote-{hash}.jpg.