Skip to content

Commit

Permalink
Update grant.js
Browse files Browse the repository at this point in the history
  • Loading branch information
marsanla committed Feb 2, 2015
1 parent 206e4a3 commit 4f2397f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/grant.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ function sendResponse (next) {

if (this.refreshToken) response.refresh_token = this.refreshToken;

this.res.send(response);
this.res
.set('Cache-Control', 'no-store')
.set('Pragma', 'no-cache')
.send(response);

if (this.config.continueAfterResponse)
next();
Expand Down

0 comments on commit 4f2397f

Please sign in to comment.