From a5822fb8ed324d661e8b14624c648e6ed004cdff Mon Sep 17 00:00:00 2001 From: DevilXD Date: Fri, 16 Sep 2022 16:28:47 +0200 Subject: [PATCH] Add a no-cache header to GQL --- twitch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/twitch.py b/twitch.py index 215b198..dc3e9fd 100644 --- a/twitch.py +++ b/twitch.py @@ -180,6 +180,8 @@ class _AuthState: headers = { "Authorization": f"OAuth {self.access_token}", "Accept": "*/*", + "Pragma": "no-cache", + "Cache-Control": "no-cache", "Origin": "https://www.twitch.tv", "Referer": "https://www.twitch.tv/", "Client-Id": CLIENT_ID,