We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2fd598f + 87bee4b commit c56cfd9Copy full SHA for c56cfd9
1 file changed
packages/browser-sync-client/index.js
@@ -92,7 +92,8 @@ function init(options, requestBody, type) {
92
* Set the appropriate headers for caching
93
*/
94
setHeaders(res, output);
95
- if (isConditionalGet(req) && fresh(req.headers, res._headers)) {
+ var resHeaders = res.getHeaders ? res.getHeaders() : res._headers;
96
+ if (isConditionalGet(req) && fresh(req.headers, resHeaders)) {
97
return notModified(res);
98
}
99
0 commit comments