-
I'm not sure, I created a program that uses gist to download and update code, and my update works kinda strange, I haven't found root of the problem yet, is it possible that in computer craft when you do a http get, if you did it sometime ago it would return already saved value and not do an actual request? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
GitHub tends to cache content on their end, so changes to files sometimes take a few minutes to show up (especially on |
Beta Was this translation helpful? Give feedback.
-
Haha, just figured it out myself, came here to close it, thanks tho! |
Beta Was this translation helpful? Give feedback.
GitHub tends to cache content on their end, so changes to files sometimes take a few minutes to show up (especially on
githubusercontent.com
). The easiest workaround here is to add a cachebuster to the end of the URL, so instead of fetching"https://gist.githubusercontent.com/x/y/raw/file.lua"
, you download"https://gist.githubusercontent.com/x/y/raw/file.lua?cb=" .. ("%x"):format(math.random(2 ^ 30))