Skip to content

Commit 894241c

Browse files
committed
add no-cache request headers
1 parent 6251861 commit 894241c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/bg.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,8 @@ function downloadURL(urls, cb) {
796796
downloadURL();
797797
},
798798
beforeSend: function(xhr) {
799+
xhr.setRequestHeader('Cache-Control', 'no-cache');
800+
xhr.setRequestHeader('Pragma', 'no-cache');
799801
xhr.setRequestHeader('If-Modified-Since', 'Tue, 1 Jan 1991 00:00:00 GMT');
800802
xhr.setRequestHeader('X-Time-Stamp', Date.now());
801803
}

0 commit comments

Comments
 (0)