by ipaddr · 3y ago · 0 comments
If the API was used rarely, that would be even more of an argument for a simple implementation and not a complex system involving webhooks.
Apache/nginx do it just fine...
cat /api/version.txt
2023.01.01
ls /api
version.txt data.zip 2023.01.01-data.zipThe version file can be quired at least the two ways:
the ETag/If-Modified-Since way (metadata only)
content itself
The best part with the last one - you don't need semver shenanigans. Just compare it with the latest dloaded copy, if version != dloaded => do_the_thing