diff --git a/server/handlers.go b/server/handlers.go
index 83ef53763d8eef561f30105a118d59f2bbf8f296..00dbe82e68833b749899092d7aee2b7e7a6abf96 100644
--- a/server/handlers.go
+++ b/server/handlers.go
@@ -84,7 +84,7 @@ func (s *Server) handlePublicKeys(w http.ResponseWriter, r *http.Request) {
 		maxAge = time.Minute * 2
 	}
 
-	w.Header().Set("Cache-Control", fmt.Sprintf("max-age=%d, must-revalidate", maxAge))
+	w.Header().Set("Cache-Control", fmt.Sprintf("max-age=%d, must-revalidate", int(maxAge.Seconds())))
 	w.Header().Set("Content-Type", "application/json")
 	w.Header().Set("Content-Length", strconv.Itoa(len(data)))
 	w.Write(data)