1
0
Fork 0
mirror of https://github.com/imjasonh/kontain.me synced 2026-07-19 07:09:18 +00:00

md5ify cache keys

This commit is contained in:
Jason Hall 2021-01-02 10:33:12 -05:00
parent 06e4bad278
commit 42d9b1af1b
6 changed files with 12 additions and 10 deletions

View file

@ -71,9 +71,7 @@ func (s *server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
}
func cacheKey(orig string) string {
return fmt.Sprintf("flatten-%s", orig)
}
func cacheKey(orig string) string { return fmt.Sprintf("flatten-%s", orig) }
// flatten.kontain.me/ubuntu -> flatten ubuntu and serve
func (s *server) serveFlattenManifest(w http.ResponseWriter, r *http.Request) {