kwhitley / apicache

Simple API-caching middleware for Express/Node.
MIT License
1.24k stars 193 forks source link

Restore the original behavior of 'x-apicache-force-fetch' header #220

Open msieurtoph opened 4 years ago

msieurtoph commented 4 years ago

The behaviors of 'x-apicache-force-fetch' and 'x-apicache-bypass' have become the same for no reason. This commit restores the original behavior of 'x-apicache-force-fetch' which was to force data fetch AND update the cache with new data ... while 'x-apicache-bypass' completely bypasses the apicache middleware.

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 97.531% when pulling 3886acfe2c8da95dcf24fd3546f95de14c359489 on msieurtoph:patch-1 into f27cb2b30719e8eb35ef98c6c019dd1d5ec96732 on kwhitley:master.

msieurtoph commented 4 years ago

CI errors have nothing to do with my commit ... :(