From d4f8dbb18d5ea1b201ca39988c092aad6ad7bb2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kornel=20Lesi=C5=84ski?= Date: Tue, 31 May 2016 15:23:17 +0100 Subject: [PATCH] Docs --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8aa992d..cfc8e03 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,10 @@ const options = { If `options.shared` is true (default), then response is evaluated from perspective of a shared cache (i.e. `private` is not cacheable and `s-maxage` is respected). If `options.shared` is false, then response is evaluated from perspective of a single-user cache (i.e. `private` is cacheable and `s-maxage` is ignored). +### `storable()` + +Returns `true` if the response can be stored in a cache. If it's `false` then you MUST NOT store either request or the response. + ### `stale()` Returns `true` if the response is stale (i.e. not fresh).