Rename the file to get what you want, am I the only one finding that a very strange approach?
https://raw.githubusercontent.com/burekasKodi/repository.bur...
I'm fine with them caching "latest" tbh.
I would expect the headers to make this clear, however.
You can't know what the actual latest is, only some cached value. The actual value may have changed while the message is in flight
And I’d assume the GitHub api has a way to get the hash for the head of a branch?
I don’t know, I guess the entire point of GitHub is to be able to obtain up-to-date files, so maybe they should just improve the caching.
> GET /file/latest HTTP/1.1
< HTTP/1.1 302 Found
< Location /path/to/real/file/hash.tar.gz> This response is only cacheable if indicated by a Cache-Control or Expires header field.
Blupblub;1 Blupblub;2 --> Blupblub;2 = Blupblub
Actually a good idea ;)
This is a beyond ridiculous statement. It is a BUG that you do not get the latest version of the file when viewing raw, not an error you made that you should address by having a filename driven versioning system.
If I'm using Git and GitHub, it's specifically to NOT have to deal with v1, v1.1, final, final_for_real, final_of_the_finalest, this_time_its_really_final.
Your suggestion to work around this GitHub bug is to essentially not use Git. Ridiculous.
You can use Git just fine without GitHub.
Maybe it’s a bit questionable to use the raw feature as a content host, but GitHub has intentionally moved pretty fair from plain old git (I believe people call this a “moat”)
I’m sure there are plenty of other players competing for users that would be happy to solve the problem for free.
And I don't see where you see that I'm not a paying user? This issue affects every repository, including ones where the user pays.
You don't have to take my word for it! https://github.com/orgs/community/discussions/46691#discussi...