Add cache control header to static content
This commit is contained in:
parent
ab9c5281a5
commit
b338cb3393
3 changed files with 4 additions and 1 deletions
|
@ -241,6 +241,8 @@ func openEpubFile(h handler, id string, file string) error {
|
|||
return err
|
||||
}
|
||||
defer html.Close()
|
||||
|
||||
addCacheControlHeader(h.w, false)
|
||||
io.Copy(h.w, html)
|
||||
return nil
|
||||
}
|
||||
|
|
Reference in a new issue