cache more

This commit is contained in:
crapStone 2024-11-21 23:47:11 +01:00
parent 92c88cff03
commit 8e008c895a
No known key found for this signature in database
GPG key ID: 22D4BF0CF7CC29C8
2 changed files with 31 additions and 13 deletions

View file

@ -68,8 +68,9 @@ func (f FileResponse) createHttpResponse(cacheKey string) (header http.Header, s
}
type BranchTimestamp struct {
Branch string `json:"branch"`
Timestamp time.Time `json:"timestamp"`
NotFound bool `json:"notFound"`
Branch string `json:"branch,omitempty"`
Timestamp time.Time `json:"timestamp,omitempty"`
}
type writeCacheReader struct {