Merge pull request #460 from mking/patch-1

Clarify precondition for freshness check
This commit is contained in:
jongleberry 2015-07-16 07:27:48 -07:00
commit 69ed37335b

View file

@ -130,6 +130,8 @@ this.query = { next: '/login' };
method is for cache negotiation between `If-None-Match` / `ETag`, and `If-Modified-Since` and `Last-Modified`. It should be referenced after setting one or more of these response headers. method is for cache negotiation between `If-None-Match` / `ETag`, and `If-Modified-Since` and `Last-Modified`. It should be referenced after setting one or more of these response headers.
```js ```js
// freshness check requires status 20x or 304
this.status = 200;
this.set('ETag', '123'); this.set('ETag', '123');
// cache is ok // cache is ok