I remember about 5 or 10 years ago, there’s a site called MegaUpload, RapidShare, and some other file hosting services that the files cannot be directly downloaded or the files are only valid for certain period of time.
Is there any hint of how they are work in terms of web server technique that can be implemented using Caddy/Go?
Share public links read-only or with editing capabilities
Anonymous upload hides existing files, providing just an upload target
Optionally put a password or expiration date on public link shares
Which seems to match what you’re looking for.
It’s all done in PHP, though - the web server just handles the requests. It’s not something Caddy does, but it is something Caddy can serve for you. You could write something similar in Go or any other language if you wanted, and you could use Caddy to serve that, too.