I\'m starting to write server-side applications in Go. I\'d like to use the Accept-Encoding
request header to determine whether to compress the response entity usi
For the sake of completeness, I eventually answered my own question with a handler that is simple and specialises in solving this issue.
This serves static files from a Go http server, including the asked-for performance-enhancing features. It is based on the standard net/http ServeFiles, with gzip/brotli and cache performance enhancements.