Skip to content

Commit 71a5714

Browse files
authored
fix: set 'Cache-Control: no-cache' for GHE server (#1622)
Set 'Cache-Control: no-cache' for not only github.com but also GitHub Enterprise Server. GitHub Enterprise Server has URL paths which is different from github.com.
1 parent d304ddf commit 71a5714

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/renderer/utils/api/__snapshots__/client.test.ts.snap

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/renderer/utils/api/request.ts

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ function shouldRequestWithNoCache(url: string) {
9494

9595
switch (parsedUrl.pathname) {
9696
case '/notifications':
97+
case '/api/v3/notifications':
9798
return true;
9899
default:
99100
return false;

0 commit comments

Comments
 (0)