send caching headers according to gitprotocol-http(5)
1 file changed, 2 insertions(+), 0 deletions(-)
jump to
M routes/git.go → routes/git.go
@@ -21,6 +21,7 @@ return } w.Header().Set("content-type", "application/x-git-upload-pack-advertisement") + w.Header().Set("cache-control", "no-cache") w.WriteHeader(http.StatusOK) cmd := service.ServiceCommand{@@ -48,6 +49,7 @@ w.Header().Set("content-type", "application/x-git-upload-pack-result") w.Header().Set("Connection", "Keep-Alive") w.Header().Set("Transfer-Encoding", "chunked") + w.Header().Set("cache-control", "no-cache") w.WriteHeader(http.StatusOK) cmd := service.ServiceCommand{