Feb 8, 2023

·
23 answers
·
29 replies


Select Topic Area

Question

Body

Hi,

I updated some files in my repository, and I need to get this updated data with the raw option.


But the data there still shows the old data, even few hours later.

What can be the reason for that?


How can I force it to be updated according the repo files?

You must be logged in to vote


Thanks for your question @burekasKodi

I want to avoid repeating a step you’ve already tried. Before I proceed, please share the steps you’ve taken thus far.

You must be logged in to vote


1 reply

@burekasKodi






Thanks for sharing more information @burekasKodi.

I wonder if the old data is still due to caching issues.

Can you use a unique query parameter to bypass the cache? As an example: https://raw.githubusercontent.com/burekasKodi/repository.burekasKodi/main/addons.xml?v=1

By bypassing the cache, the client will be forced to retrieve the new version rather than the cached version.

Please let me know what your thoughts are.

You must be logged in to vote


4 replies

@burekasKodi


@2MuchC0ff33


Still the same.


I don’t think that this time it is a cache issue since I have already tried with different browsers etc.

@burekasKodi






@2MuchC0ff33


Update:


I have just checked this from another laptop I have and there it’s ok. But on my other laptop and mobile (with different browsers) I’m still getting the old data.

@hagezi

@RobloxianRoblox3200


Unfortunately, I have the same thing, but if you use vipien, everything is kind of normal(






You must be logged in to vote


0 replies


I’m having the same issue with this file:

https://github.com/grantwinney/hide-comments-everywhere/blob/master/sites/version.json

I’ve updated it several times, going back and forth between a couple values.

image

The “raw” version of the file remains unchanged after 14 hours. I’ve checked on two separate devices, tried ctrl+shift+r to bypass any local cache, loaded the page in an incognito window, etc.

image

What’s weirder is that the other json file I updated in the first commit is showing an updated raw file. It’s just this one that won’t change.

You must be logged in to vote


0 replies


Also happening with one (at least) of my repos.

You must be logged in to vote


0 replies


You must be logged in to vote


0 replies






Mine finally updated about an hour ago. I haven’t made any more changes to it though, to see if subsequent changes show up after a few minutes as they normally do.

Edit: I made changes to the same files this evening, and after an hour only one of them has updated.

You must be logged in to vote


0 replies


You must be logged in to vote


4 replies

@2Abendsegler


I have the same problem. The raw.githubusercontent.com links show content from 48 hours ago. I reported a bug about 34 hours ago. However, the ticket for it is probably not visible to everyone. There are no results yet.

@umwrya16


Any response from github to that ticket?

@hagezi


Quite annoying, if anything, there seems to be a RAW cache update only every 24 hours in some regions.

@2Abendsegler


Any response from github to that ticket?

No


For me, the Github “Cache” problems seem to be fixed.

You must be logged in to vote


0 replies






@hagezi @2MuchC0ff33


Yes, it does seems like it works again, but I don’t know for sure if it was because I pushed a new commit to the repo or not.

You must be logged in to vote


2 replies

@2MuchC0ff33

@shawvip


I am glad it is working again for you @burekasKodi

I am facing the same issue now. Raw is pointing to older version.


How to fix it


We hit the same issue


it looks was pause in invalidation caches inside some of CDN regions

You must be logged in to vote


0 replies


For me, the Github “Cache” problem is back …

You must be logged in to vote


2 replies

@sushantr5


I am facing the same issue now. Raw is pointing to older version.

@sushantr5


This is first time I am using raw file link for my project. The client code downloads config file stored with this raw link. This is really frustrating to wait for fix of the issue.


Same Issue here, The problem start from 7 FEB 2023

You must be logged in to vote


0 replies






This varies from repositories the default of “Cache-Control” is “max-age=300” repositories with a delay of up to 24h show 86400=24 hours, I don’t know if this was a change in Github policy or if it is really a bug in the server.

You must be logged in to vote


2 replies

@hagezi

@GladistonXD






debug options/network/Refresh the page and click on the request/headers/response headers/cache-control


I am facing the same issue now. Raw is pointing to older version.


How to fix it

You must be logged in to vote


0 replies


It’s just a matter of time, just wait to the cache re updates the data

You must be logged in to vote


3 replies

@umwrya16


Not really, some times it take 15 plus hours and in my case the updates are time sensitive and need to be done on time.

@KekOnTheWorld


Not really, some times it take 15 plus hours and in my case the updates are time sensitive and need to be done on time.

Then you should consider redistributing your assets on an external VPS and not relying on githubs content delivery network.

@umwrya16


I sure should have, painful but now i know






Help!!!!


Anyone report this issue to GitHub admin?


Now the cache max age become 86400 (24hours)

I think is a bug not policy, because the date and expire is still 5min difference and 24hours is not logic.

You must be logged in to vote


0 replies


I used a VPN to change my IP to a different country. This way sometimes it work sometimes it does not. Even when you find a country that works the next time it may not work.


the raw file link also show different data version depending on the IP address.


for example a Canadian ip may show old data but an Indian ip will show the new data.

You must be logged in to vote


4 replies

@Odex64


I tested it as well and I can confirm that the raw file is IP dependant, but for some reasons I still get the old version when reading it through a script, even if I’m using a “working” IP address.

@hagezi


For me, it is enough to change the DNS. NextDNS delivers an old RAW version, Umbrella delivers the current version via the RAW link. It probably has to do with which server you land on. The RAW cache seems to have a different status on the servers.

@umwrya16


Can you describe how to change the DNS!

@hagezi


@umwrya16 You can simply change the DNS of the system you are retrieving from. However, it varies even then, had a few times the current version, later again the old version. It seems to be related to which server you end up on after resolving raw.githubusercontent.com.






I have problems with the raw files as well. As far as I know it should take exactly 5 minutes to cache them, but why is it taking so long recently? Is it a Github issue or what?

EDIT


After the first push the RAW file has been updated immediately (even before than 5 minutes); however after the 2nd push the cache-control has changed to 86400 (24 hours). I hope it’s not a policy change…

You must be logged in to vote


0 replies


I have the same issue with a gist, cache-control is 24 hours instead of 5 minutes.

You must be logged in to vote


0 replies






Raw gist files have always been cached hard, but a workaround is to add ? and a random number to the end of the query.

I have used this to allow me to auto update computer craft scripts.


"/raw/?" .. tostring(math.random(0, 9999999)) (lua) is all i needed to do to work around the harsh cache limits.

Example:

https://gist.githubusercontent.com/Vam-Jam/e3da791dd81637dbc2b52e0034e358b7/raw Cached


https://gist.githubusercontent.com/Vam-Jam/e3da791dd81637dbc2b52e0034e358b7/raw?12367 Uncached unless you get the same random number twice

You must be logged in to vote


1 reply

@hamflx


👋 Hi folks, GitHub engineer here. This was a bug with our caching in some cases – sorry about this! We’re working on resolving this and the cache should be back to normal soon.

You must be logged in to vote


3 replies

@ayaze01

@hagezi


@antn Thank you very much for the feedback.

@ch-hristov


as someone who’s dealt with similar problems…I totally understand


This should be fixed now, thank you for reporting it. I’ve purged the cache so your raw files should be back to using max-age=300. Please let me know if you’re still seeing a longer expiry, and I can take a look.

You must be logged in to vote


3 replies

@hagezi

@antn


@hagezi ahh, hmm. It is showing max-age=300 for me. Is your browser maybe caching an old version? Can you try a hard refresh?

@johnny353535

Read More