Skip to content

Commit b414539

Browse files
authored
Merge pull request #90 from christophgysin/fix-auth0-cache
fix cache mode
2 parents 4165397 + a3af672 commit b414539

File tree

1 file changed

+2
-2
lines changed
  • aws-node-auth0-custom-authorizers-api/frontend

1 file changed

+2
-2
lines changed

aws-node-auth0-custom-authorizers-api/frontend/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ document.getElementById('btn-public').addEventListener('click', () => {
5656
// call public API
5757
const getdata = fetch(PUBLIC_ENDPOINT, {
5858
method: 'GET',
59-
cache: false,
59+
cache: 'no-store',
6060
});
6161

6262
getdata.then((response) => {
@@ -82,7 +82,7 @@ document.getElementById('btn-private').addEventListener('click', () => {
8282
Authorization: `Bearer ${token}`,
8383
},
8484
method: 'GET',
85-
cache: false,
85+
cache: 'no-store',
8686
});
8787

8888
getdata.then((response) => {

0 commit comments

Comments
 (0)