Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What does the second parameter of GetAsync do? (HttpService)

Asked by
Validark 1580 Snack Break Moderation Voter
9 years ago

Insufficient documentation can be found on the wiki.

1 answer

Log in to vote
1
Answered by
Unclear 1776 Moderation Voter
9 years ago

GetAsync has an option to cache its result locally using the second parameter.

string GetAsync (
    string url,
    bool nocache = false
)

When nocache is set to false, the result of GetAsync is stored. Every subsequent GetAsync request will pull from this result. The cache is refreshed when you set nocache to true. This is more of a matter of whether you truly need to look up every time because you think the page will change or whether knowing it once will suffice.

Ad

Answer this question