git ssb

16+

cel / patchfoo



code view doesn't render other branches

%5ZmhjlVOzL0UigNRJuVqI1ZZ71/JM0pMX5+LiJwX968=.sha256
ClosedKira opened this issue on 9/25/2018, 4:41:10 PM

code view doesn't render other branches

When viewing a file in git-ssb-web, no matter what branch I choose from the drop-down, it always shows the first branch (web in this repo).

%uqLa+kJUuiFL5LFpmwDhUjh0ZJkgbl4pRcR7XgqvlpA=.sha256 cel · 8/23/2019, 2:07:44 AM

@noffle I'm not seeing this locally. Maybe it was fixed a while ago, I'm not sure. Does it still happen for you?

I assume this issue was meant for the git-ssb-web project.

%yyykxBGNo5dxu9mJnJKLXCZGSHok/syRSTsGDLVzdLE=.sha256 Kira · 8/24/2019, 1:48:04 AM

@cel Oops, it was.

I haven't run git-ssb-web locally or a while, but I can repro right now on http://git.scuttlebot.io/%25q5d5Du%2B9WkaSdjc8aJPZm%2BjMrqgo0tmfR%2BRcX5ZZ6H4%3D.sha256

%SFE1RV7zVNIqMhkmGlTUknH+DEXXT3WJprelSLV1iA0=.sha256 cel closed this issue · 8/25/2019, 8:38:24 PM

@noffle fixed now. It was because of the nginx reverse proxy caching, which was not including the query string when testing if a request is for a cached resource. git-ssb-web uses a query string parameter rev for the branch navigation by menu feature. So I added $arg_rev to proxy_cache_key in the nginx conf location block for git-ssb-web. I also added a bunch of other $arg_… values for query string parameters that git-ssb-web uses to the nginx conf, which should improve functionality of other pages on git.scuttlebot.io (including searches).

Built with git-ssb-web