Skip to content

Commit

Permalink
Reduce cache age
Browse files Browse the repository at this point in the history
  • Loading branch information
abatilo committed Dec 29, 2023
1 parent 623b36b commit a111176
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 111 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var resume []byte

func main() {
http.ListenAndServe(":80", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "public, max-age=604800")
w.Header().Set("Cache-Control", "public, max-age=172800")
w.Header().Set("Content-Type", "application/pdf")
w.Header().Set("Content-Disposition", "inline; filename=\"resume.pdf\"")
w.Header().Set("Content-Transfer-Encoding", "binary")
Expand Down
110 changes: 0 additions & 110 deletions resume.yaml

This file was deleted.

0 comments on commit a111176

Please sign in to comment.