Skip to content

Commit

Permalink
Merge pull request johntron#13 from aprilb/master
Browse files Browse the repository at this point in the history
Set request headers for IE caching
  • Loading branch information
johntron committed Jul 28, 2015
2 parents 7c7dfde + 64dc082 commit 22d5900
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ function with_query_strings (request) {

module.exports = function _superagentNoCache (request, mockIE) {
request.set('X-Requested-With', 'XMLHttpRequest')
request.set('Cache-Control', 'no-cache,no-store,must-revalidate,max-age=-1')
request.set('Expires', '-1')
request.set('Cache-Control', 'no-cache,no-store,must-revalidate,max-age=-1,private')

if (ie || mockIE) {
with_query_strings(request)
Expand Down

0 comments on commit 22d5900

Please sign in to comment.