all repos — elgit @ 74ed7e88cccf0ee731c4099242354bfb151259f7

fork of legit: web frontend for git, written in go

send caching headers according to gitprotocol-http(5)

Alan Pearce
commit

74ed7e88cccf0ee731c4099242354bfb151259f7

parent

6eb1b732e3a7e3b65c62e816d1abd9bd76629caf

1 file changed, 2 insertions(+), 0 deletions(-)

jump to
M routes/git.goroutes/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{