webpro / dyson

Node server for dynamic, fake JSON.
837 stars 62 forks source link

Fix: only cache response if they have the same method & patch #95

Closed ThibaudAV closed 5 years ago

ThibaudAV commented 5 years ago

Currently the cache is based only on the path of the request

So, if during processing there are 2 calls with a different method the cache does not allow to have a different response

The changes add the method in the cache key

webpro commented 5 years ago

Thanks @ThibaudAV! Released this in v2.0.4