mirror of
https://github.com/vbatts/imgsrv.git
synced 2025-07-06 00:58:30 +00:00
cache-control for css
This commit is contained in:
parent
1e2c4bf3a3
commit
a3ba8b3afd
2 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue