koa-incache
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -7,2 +7,5 @@ # Change Log | ||
## [0.3.1] - 2018-10-15 | ||
- Changed key for caching from `path` to `originalUrl` | ||
## [0.3.0] - 2017-09-07 | ||
@@ -9,0 +12,0 @@ - Updated dependencies |
@@ -10,3 +10,3 @@ const InCache = require('incache'); | ||
save: true, | ||
cachedProperty: 'path', | ||
cachedProperty: 'originalUrl', | ||
storeName: 'koa-incache', | ||
@@ -13,0 +13,0 @@ filePath: '.koa-incache', |
{ | ||
"name": "koa-incache", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Koa cache middleware", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -40,3 +40,3 @@ <div align="center"> | ||
#### Routing | ||
The **cache is made** using `ctx.path` as key | ||
The **cache is made** using `ctx.originalUrl` as key | ||
```javascript | ||
@@ -43,0 +43,0 @@ const fs = require('fs'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
18527
14