Skip to content
Myr

Include ETag in HEAD requests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

backport of commit 3c7310ebcbee1d65f47e6c6115ade2fa4cbd5b59

authored by Tiago Relvao · committed by Douglas Christopher Wilson · parent d4a2843 · Browse files · 3 files+29 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+29 added−1 removed

  • tests:+23 added−0 removed
  • other:+6 added−1 removed

3 files+29 added−1 removed

modified:lib/response.js+1 added-1 removed
135 unmodified lines
136 }137138 // ETag support139 // TODO: W/ support140 if (app.settings.etag && len && 'GET' == req.method) {140 if (app.settings.etag && len && ('GET' == req.method || 'HEAD' == req.method)) {141 if (!this.get('ETag')) {142 this.set('ETag', etag(body));143 }144 }
693 unmodified lines
modified:test/app.head.js+23 added
modified:History.md+5 added
13.x2===34 * Include ETag in HEAD requests563.8.1 / 2014-05-277==================89 * update connect to 2.17.3
1354 unmodified lines