11ty / api-indieweb-avatar

Return an optimized avatar image from a domain name input.
https://v1.indieweb-avatar.11ty.dev/
65 stars 11 forks source link

How long are images cached for? #14

Closed robb-j closed 1 year ago

robb-j commented 1 year ago

Since deploying my tweetback, I've updated the favicon on my personal site and I figured the indie avatar would eventually update, but it doesn't seem to have?

If I take the trailing slash (%2f) off it gets the updated icon

Thanks, Rob

zachleat commented 1 year ago

The cache is invalidated with a build but builds do not happen often! I think I should probably at least add a weekly ttl.

You could PR it if you like!

https://github.com/11ty/api-indieweb-avatar/blob/v1/functions/avatar/index.js#L27

https://docs.netlify.com/configure-builds/on-demand-builders/#time-to-live-ttl

robb-j commented 1 year ago

Ok I'll give it a bash

zachleat commented 1 year ago

It’s live!

zachleat commented 1 year ago

Closed by #15