wouldn't this be vulnerable to DOS attacks? I can make the database run arbitrarily long and complicated queries
But if you want to jack up someone's S3 bandwidth bill there are already easier ways to do it!
Cloudflare's limit is 10GB, 20GB for Cloudfront, 150GB for Akamai and Azure.
https://support.cloudflare.com/hc/en-us/articles/200172516-U...
Do you understand that the database runs on your computer? You can only DOS yourself.
One would have to version the SQLite DB by version to avoid corruption by cache invalidation.