Fresh returns true when the response is still “fresh” in the client's cache, otherwise false is returned to indicate that the client cache is now stale and the full response should be sent. When a client sends the Cache-Control: no-cache request header to indicate an end-to-end reload request, this
()
| 71 | // reload request, this module will return false to make handling these requests transparent. |
| 72 | // https://github.com/jshttp/fresh/blob/master/index.js#L33 |
| 73 | Fresh() bool |
| 74 | // Get returns the HTTP request header specified by field. |
| 75 | // Field names are case-insensitive |
| 76 | // Returned value is only valid within the handler. Do not store any references. |
no outgoing calls