I am using following code:
var webroot = flag.String("root", "/public", "web root directory")
func handler(w http.ResponseWriter, r *http.Request) {
...
}
http.Handle("/images/", http.StripPrefix("", http.FileServer(http.Dir(*webroot))))
http.HandleFunc("/", handler)
http.ListenAndServe(listenAddr, nil)
What I need to set so the etag be computed for the static files in webroot?