Skip to content

Commit

Permalink
Add 'no-cache' to the HTTP request headers to avoid caching issue
Browse files Browse the repository at this point in the history
Signed-off-by: Tao Wang <twang2218@gmail.com>
  • Loading branch information
twang2218 committed Jul 3, 2017
1 parent a56ff9f commit b0017de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const DEFAULT_OPTION = {
resolveWithFullResponse: true,
headers: {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36',
'Cache-Control': 'no-cache',
},
};

Expand Down

0 comments on commit b0017de

Please sign in to comment.