Skip to content

Commit

Permalink
Set proper cache control headers as per spec. see http://tools.ietf.o…
Browse files Browse the repository at this point in the history
  • Loading branch information
jalleyne committed Feb 18, 2014
1 parent d911a73 commit 9c24b7a
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 @@ -418,7 +418,10 @@ function sendResponse (done) {

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

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

if (this.continueAfterResponse)
done();
Expand Down

0 comments on commit 9c24b7a

Please sign in to comment.