mirror of
https://github.com/vbatts/imgsrv.git
synced 2024-11-27 10:35:41 +00:00
cache-control for css
This commit is contained in:
parent
1e2c4bf3a3
commit
a3ba8b3afd
2 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue