Skip to content

Commit

Permalink
add no-cache request headers
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkadlec0 committed Sep 5, 2013
1 parent 6251861 commit 894241c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,8 @@ function downloadURL(urls, cb) {
downloadURL();
},
beforeSend: function(xhr) {
xhr.setRequestHeader('Cache-Control', 'no-cache');
xhr.setRequestHeader('Pragma', 'no-cache');
xhr.setRequestHeader('If-Modified-Since', 'Tue, 1 Jan 1991 00:00:00 GMT');
xhr.setRequestHeader('X-Time-Stamp', Date.now());
}
Expand Down

0 comments on commit 894241c

Please sign in to comment.