tangled
alpha
login
or
join now
evan.jarrett.net
/
at-container-registry
66
fork
atom
A container registry that uses the AT Protocol for manifest storage and S3 for blob storage.
atcr.io
docker
container
atproto
go
66
fork
atom
overview
issues
1
pulls
pipelines
add a cache-control header to metadata page
evan.jarrett.net
2 months ago
34c2b8b1
8d0cff63
verified
This commit was signed with the committer's
known signature
.
evan.jarrett.net
SSH Key Fingerprint:
SHA256:bznk0uVPp7XFOl67P0uTM1pCjf2A4ojeP/lsUE7uauQ=
1/1
release.yml
success
4min 34s
+3
1 changed file
expand all
collapse all
unified
split
cmd
appview
serve.go
+3
cmd/appview/serve.go
···
392
392
393
393
w.Header().Set("Content-Type", "application/json")
394
394
w.Header().Set("Access-Control-Allow-Origin", "*")
395
395
+
// Limit caching to allow scope changes to propagate quickly
396
396
+
// PDS servers cache client metadata, so short max-age helps with updates
397
397
+
w.Header().Set("Cache-Control", "public, max-age=300")
395
398
if err := json.NewEncoder(w).Encode(metadataMap); err != nil {
396
399
http.Error(w, "Failed to encode metadata", http.StatusInternalServerError)
397
400
}