apicache
apicache copied to clipboard
cache-control global options not working correctly
Hi,
Is there a bug in the newly implement global options for cache-control?
It looks like the method sendCachedResponse (apicache.js 258) does not check the global options for the header cache-control and writes a new cache-control header with a reduced max-age. This causes the browser to cache the response from the api even if the global option cache-control is specified as no-cache.
I could be wrong.
You might want to look at #205. It looks like this package is losing support but there's a fork of this package with this improvement.
This seems to be a defect. It's happening for us too.