Skip to content

Commit 87fd749

Browse files
committed
feat(3.3.0): add cache-control header
1 parent 87105b6 commit 87fd749

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.goreleaser.yml

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ dockers:
4040
- auguwu/ume:latest-amd64
4141
- auguwu/ume:{{ .Version }}-amd64
4242
- auguwu/ume:{{ .Major }}.{{ .Minor }}-amd64
43-
- ghcr.io/auguwu/ume:latest
4443
- ghcr.io/auguwu/ume:latest-amd64
4544
- ghcr.io/auguwu/ume:{{ .Version }}-amd64
4645
- ghcr.io/auguwu/ume:{{ .Major }}.{{ .Minor }}-amd64

routing/images.go

+2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ func NewImagesRouter(client *mongo.Client) chi.Router {
9494
}
9595

9696
contentType, _ := types[s[len(s)-1]]
97+
9798
w.Header().Set("Content-Type", contentType)
99+
w.Header().Set("Cache-Control", "public, max-age=777600, must-revalidate")
98100
w.WriteHeader(200)
99101
})
100102

version.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "3.2.4"
2+
"version": "3.3.0"
33
}

0 commit comments

Comments
 (0)