tdurieux / anonymous_github

Anonymous Github is a proxy server to support anonymous browsing of Github repositories for open-science code and data.
https://anonymous.4open.science/
GNU General Public License v3.0
1.42k stars 55 forks source link

Files are not displayed and accessible #306

Open SuhoK opened 2 months ago

SuhoK commented 2 months ago

After anonymizing my GitHub repository, the anonymous GitHub page only shows folders without displaying the files inside them when I access the page. How can I fix this issue? All files in folders are just python source codes.

gottardi commented 2 months ago

Hello, First of all, many thanks for this! I thought about reporting a bug, but seems related to this issue, might even be the very same problem.

I think that updating the repository via the anonymize/edit page does work and does make the files accessible.

However, for some reason, the browser cache keeps showing an old version. I am guessing it is redirecting to the content by using an URL ending in "?v=NUMBER", which might show empty folders or a previous version of a file even after forcing repository refresh... including the raw mode view and browser refresh with ctrl+F5.

After opening it using another browser, I noticed it was working fine.

In summary, please verify the cache expiration setting! Visitors would never tell if it was supposed to look like this...