diff --git a/imgsrv.go b/imgsrv.go index 90f8294..39b0ccd 100644 --- a/imgsrv.go +++ b/imgsrv.go @@ -10,8 +10,8 @@ package main import ( "flag" "fmt" - "github.com/vbatts/imgsrv/config" "github.com/vbatts/imgsrv/client" + "github.com/vbatts/imgsrv/config" "github.com/vbatts/imgsrv/util" "labix.org/v2/mgo" "log" diff --git a/server.go b/server.go index 2e7cb79..4c31d6e 100644 --- a/server.go +++ b/server.go @@ -720,6 +720,7 @@ func routeAssets(w http.ResponseWriter, r *http.Request) { switch path { case "bootstrap.css": fmt.Fprint(w, bootstrapCSS) + w.Header().Set("Cache-Control", "max-age=315360000") w.Header().Set("Content-Type", "text/css") } }