Browse Source

Assume HTTP/1.1+ and always compare host

master
Kornel Lesiński 9 years ago
parent
commit
febf3e2218
  1. 1
      index.js

1
index.js

@ -103,6 +103,7 @@ CachePolicy.prototype = {
// The presented effective request URI and that of the stored response match, and
return (!this._req.url || this._req.url === req.url) &&
(this._reqHeaders.host === req.headers.host) &&
// the request method associated with the stored response allows it to be used for the presented request, and
(!this._req.method || this._req.method === req.method) &&
// selecting header fields nominated by the stored response (if any) match those presented, and

Loading…
Cancel
Save