caddy probably gets better performance, agreed. This has the advantage of being installed on every semi-recent Python version, which itself is installed OOTB on most Linux boxes, which is very relevant to my use case. It also works on Windows if Python already happens to be there - not sure if caddy is nix-specific
Never heard of caddy, but it seems something you need to install. This „trick“ just requires Python, which a default Linux already has. And it works well, even with large files. Another plus is you can see accesses in real time. In combination with Ngrok it’s a quick way to exchange a file with someone remote you’re on the phone with.
caddy file-server --browse