From mboxrd@z Thu Jan 1 00:00:00 1970 From: june at causal.agency (June Bug) Date: Sat, 11 Apr 2020 18:08:17 -0400 Subject: Dumb HTTP & Caching In-Reply-To: <5ab1e63c-b58e-b2c0-f650-224028201577@necoro.eu> References: <5ab1e63c-b58e-b2c0-f650-224028201577@necoro.eu> Message-ID: <258A3E64-E0CF-414D-82F5-012B8270B324@causal.agency> > On Apr 11, 2020, at 17:59, Ren? Neumann wrote: > > Hi, > > I'm using cgit as a dumb HTTP frontend to my git repositories. And I noticed that sometimes git push (via ssh) followed by git pull (via https) will return the revision before the push. > > Is it possible, that cgit's caching interferes with pull here? If so, is there some way to turn it off without disabling caching as a whole? That does seem to be the case in my experience too. I suggest setting up the ?smart? HTTP transport git-http-backend in parallel with cgit, which also greatly improves pull/clone speed. You can see how I set it up in the last section of , ?Update: fast HTTPS clones?.