Skip to content

Commit

Permalink
Increased cache duration
Browse files Browse the repository at this point in the history
  • Loading branch information
wavy-cat committed Sep 26, 2024
1 parent 302e306 commit 90b7ea4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
/pkg/petpet/test/output.gif
web
2 changes: 1 addition & 1 deletion http/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Pragma", "no-cache") // Для совместимости со старыми браузерами
w.Header().Set("Expires", "0") // Для совместимости со старыми браузерами
default:
w.Header().Set("Cache-Control", "max-age=300")
w.Header().Set("Cache-Control", "max-age=900")
}

// Генерируем гифку
Expand Down

0 comments on commit 90b7ea4

Please sign in to comment.