Open mddanishyusuf opened 5 years ago
I'm building an small project with GitHub APIs and by default this is the config Cache-Control: public, max-age=60, s-maxage=60
Cache-Control: public, max-age=60, s-maxage=60
Means GitHub APIs will be cache for next 60 sec of the call. I can't wait for that So, I google to find a solution and I found this https://github.com/octokit/rest.js/issues/890#issuecomment-392193948
Just use a basic config 'If-None-Match': '' in header and that's all.
'If-None-Match': ''
Like this.
axios.get(url, {header: {'If-None-Match': ''}})
I'm building an small project with GitHub APIs and by default this is the config
Cache-Control: public, max-age=60, s-maxage=60
Means GitHub APIs will be cache for next 60 sec of the call. I can't wait for that So, I google to find a solution and I found this https://github.com/octokit/rest.js/issues/890#issuecomment-392193948
Just use a basic config
'If-None-Match': ''
in header and that's all.Like this.
axios.get(url, {header: {'If-None-Match': ''}})