Skip to content

Commit

Permalink
Add cache header
Browse files Browse the repository at this point in the history
  • Loading branch information
abatilo committed Aug 27, 2023
1 parent d4d0081 commit e9001f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ 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=172800")
w.Header().Set("Content-Type", "application/pdf")
w.Write(resume)
}))
}

0 comments on commit e9001f3

Please sign in to comment.