We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f46d9a5 + a07a91d commit af66f5bCopy full SHA for af66f5b
1 file changed
src/code/handler.go
@@ -77,6 +77,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
77
endPos = res.Offset + res.FooterSize
78
}
79
w.Header().Set("Accept-Ranges", "bytes")
80
+ w.Header().Set("Cache-Control", "max-age=604800") // tell CDN to cache 7 days
81
w.Header().Set("Content-Disposition", fmt.Sprintf(`attachment; filename="%s"`, fcCtx.NewApkFileName))
82
w.Header().Set("Content-Type", "application/octet-stream")
83
w.Header().Set("Content-Range", fmt.Sprintf("bytes %d-%d/%d", beginPos, endPos-1, res.Offset+res.FooterSize))
0 commit comments