rootx
|
  |
| Joined: 14 Jun 2012 |
| Total Posts: 375 |
|
|
| 18 Dec 2013 08:15 PM |
I'm trying to read from a txt file, and sometimes I update it and I want it to update in game. But nocache does not seem to work
while true do wait(5) request = game:GetService("HttpService"):GetAsync("http://starboundcommunity.com/roblox/admin/users/commands.txt", true) print(request) end |
|
|
| Report Abuse |
|
|
rootx
|
  |
| Joined: 14 Jun 2012 |
| Total Posts: 375 |
|
| |
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
|
| 18 Dec 2013 09:09 PM |
change the url.
http://starboundcommunity.com/roblox/admin/users/commands.txt?dom=342 http://starboundcommunity.com/roblox/admin/users/commands.txt?dom=32590 http://starboundcommunity.com/roblox/admin/users/commands.txt?potatoe=122430
every time. |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2013 09:12 PM |
Expanding on what 6 said, the best way in practice is, in my opinion at least;
game:GetService("HttpService"):GetAsync("http://starboundcommunity.com/roblox/admin/users/commands.txt?time=" .. tostring(tick()), true) |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2013 09:42 PM |
Or use... the nocache bool.
~LuaWeaver; Programmer, gamer, developer. |
|
|
| Report Abuse |
|
|
bohdan77
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 7944 |
|
|
| 18 Dec 2013 10:02 PM |
| Theluaweaver, did you read? |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 18 Dec 2013 10:08 PM |
@TLW_and_everyone_that_replies_to_threads_without_reading_them For the love of God, please read the thread before you reply. It gets very annoying if you don't. |
|
|
| Report Abuse |
|
|
| |
|
sncplay42
|
  |
| Joined: 27 Nov 2008 |
| Total Posts: 11891 |
|
|
| 19 Dec 2013 07:23 AM |
Nocache is indeed bugged.
Or its only ever intended purpose was to send a "Cache-Control: no-cache" header and we misinterpreted. But that's silly. |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2013 11:49 AM |
Yeah, I've found this a few days ago too and put it on Anaminus' ROBLOX Bug Tracker.
When life gives you lemons... BURN HIS HOUSE DOWN! >:D |
|
|
| Report Abuse |
|
|