browser-sync
Advanced tools
Comparing version 0.4.11 to 0.4.12
@@ -122,2 +122,13 @@ /* | ||
|-------------------------------------------------------------------------- | ||
| Inject Changes | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Browser Sync will attempt to inject changes where possible (such as CSS, Images). | ||
| If your situation requires a full page reload for css changes, change this to false | ||
| | ||
*/ | ||
injectChanges: true, | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Scroll Throttle (milliseconds) | ||
@@ -124,0 +135,0 @@ |-------------------------------------------------------------------------- |
@@ -8,3 +8,2 @@ "use strict"; | ||
var utils = { | ||
@@ -24,4 +23,4 @@ /** | ||
var string = ""; | ||
var host = userServer.host; | ||
var port = userServer.port; | ||
var host = userServer.host; | ||
var port = userServer.port; | ||
var regex; | ||
@@ -41,2 +40,14 @@ | ||
}; | ||
}, | ||
/** | ||
* Remove Headers from a response | ||
* @param {Object} headers | ||
* @param {Array} items | ||
*/ | ||
removeHeaders: function (headers, items) { | ||
items.forEach(function (item) { | ||
if (headers.hasOwnProperty(item)) { | ||
delete headers[item]; | ||
} | ||
}); | ||
} | ||
@@ -89,5 +100,3 @@ }; | ||
server.proxy.on("proxyResponse", function (req, res, response) { | ||
if (response.headers.hasOwnProperty("content-length")) { | ||
delete response.headers["content-length"]; | ||
} | ||
utils.removeHeaders(response.headers, ["content-length", "content-encoding"]); | ||
}); | ||
@@ -94,0 +103,0 @@ |
{ | ||
"name": "browser-sync", | ||
"description": "Live CSS Reload & Browser Syncing", | ||
"version": "0.4.11", | ||
"version": "0.4.12", | ||
"homepage": "https://github.com/shakyshane/browser-sync", | ||
@@ -6,0 +6,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
183129
2194