File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ var NotificationsStore = Reflux.createStore({
26
26
var tokens = AuthStore . authStatus ( ) ;
27
27
28
28
apiRequests
29
- . getAuth ( 'https://api.github.com/notifications?now=' + Date . now ( ) )
29
+ . getAuth ( 'https://api.github.com/notifications' )
30
30
. end ( function ( err , response ) {
31
31
if ( response && response . ok ) {
32
32
// Success - Do Something.
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ var apiRequests = {
21
21
. get ( url )
22
22
. set ( 'Accept' , 'application/vnd.github.v3+json' )
23
23
. set ( 'Authorization' , 'token ' + AuthStore . authStatus ( ) )
24
+ . set ( 'Cache-Control' , 'no-cache' )
24
25
. set ( 'User-Agent' , 'Gitify' ) ;
25
26
} ,
26
27
@@ -30,6 +31,7 @@ var apiRequests = {
30
31
. send ( params )
31
32
. set ( 'Accept' , 'application/vnd.github.v3+json' )
32
33
. set ( 'Authorization' , 'token ' + AuthStore . authStatus ( ) )
34
+ . set ( 'Cache-Control' , 'no-cache' )
33
35
. set ( 'User-Agent' , 'Gitify' ) ;
34
36
}
35
37
} ;
You can’t perform that action at this time.
0 commit comments