w.Header().Del("Cache-Control")//avoid sending cache headers for errors!
w.Header().Del("Cache-Control")
w.Header().Del("ETag")
}
acceptHeader:=r.Header.Get("Accept")
// this cannot be in a switch form since an Accept header can be in the form of "Accept: */*, text/html, application/xhtml+xml, application/xml;q=0.9, */*;q=0.8"
// this cannot be in a switch since an Accept header can have multiple values: "Accept: */*, text/html, application/xhtml+xml, application/xml;q=0.9, */*;q=0.8"