webp-sh / webp_server_go

Go version of WebP Server. A tool that will serve your JPG/PNG/BMP/SVGs as WebP/AVIF format with compression, on-the-fly.
https://docs.webp.sh
GNU General Public License v3.0
1.79k stars 174 forks source link

fix: metadata not updated when remote file changes #297

Closed HolgerHuo closed 10 months ago

HolgerHuo commented 10 months ago

Another pr for cache management :

In some conditions, when the remote file is updated without url change (although this is not a good practice, but this may happen when remote server adopts a new etag algorithm, etc), even though the new source file is fetched, the metadata containing hash for the url is not updated.

n0vad3v commented 10 months ago

Nice catch! Now merged. ❤️