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({
2626 var tokens = AuthStore . authStatus ( ) ;
2727
2828 apiRequests
29- . getAuth ( 'https://api.github.com/notifications?now=' + Date . now ( ) )
29+ . getAuth ( 'https://api.github.com/notifications' )
3030 . end ( function ( err , response ) {
3131 if ( response && response . ok ) {
3232 // Success - Do Something.
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ var apiRequests = {
2121 . get ( url )
2222 . set ( 'Accept' , 'application/vnd.github.v3+json' )
2323 . set ( 'Authorization' , 'token ' + AuthStore . authStatus ( ) )
24+ . set ( 'Cache-Control' , 'no-cache' )
2425 . set ( 'User-Agent' , 'Gitify' ) ;
2526 } ,
2627
@@ -30,6 +31,7 @@ var apiRequests = {
3031 . send ( params )
3132 . set ( 'Accept' , 'application/vnd.github.v3+json' )
3233 . set ( 'Authorization' , 'token ' + AuthStore . authStatus ( ) )
34+ . set ( 'Cache-Control' , 'no-cache' )
3335 . set ( 'User-Agent' , 'Gitify' ) ;
3436 }
3537} ;
You can’t perform that action at this time.
0 commit comments