Skip to content

Commit 87e938d

Browse files
authored
Merge pull request #23 from containerish/add-no-cache-header
Fix: No-Cache Header
2 parents 6f7d547 + f2dac36 commit 87e938d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/apis/httpClient.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ abstract class HttpClient {
1111
protected constructor(baseURL: string, headers?: any) {
1212
this.http = axios.create({
1313
baseURL,
14-
headers,
14+
headers: {
15+
'Cache-Control': 'no-cache',
16+
...headers
17+
},
1518
withCredentials: true,
1619
httpAgent: this.getUserAgent(),
1720
httpsAgent: this.getUserAgent(),

0 commit comments

Comments
 (0)