Skip to content

Http get response doesn't update #1815

Closed Answered by SquidDev
Elphyn asked this question in Q&A
Discussion options

You must be logged in to vote

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))

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Elphyn
Comment options

You must be logged in to vote
1 reply
@Elphyn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants