【Unity】UnityWebRequest でブラウザキャッシュを無効にする

DEVELOP, Unity

Indexdb を使わない。

private static UnityWebRequest SetupUnityWebRequest(string _url)
{
    UnityWebRequest wr = UnityWebRequest.Get(_url);
    wr.SetRequestHeader("Cache-Control", "no-cache, no-store, must-revalidate");
    wr.SetRequestHeader("Pragma", "no-cache");
    wr.SetRequestHeader("Expires", "0");
    return wr;
}

c# – WWW/UnityWebRequest POST/GET request won’t return the latest data from server/url – Stack Overflow

Posted by kazupon