Fix key issue in cache.
merge with upstream/master and update the cache key calculation in middleware.js
Merge pull request #104 from Ghost141/cache_fix

Cache fix