README.md in poltergeist-1.17.0 vs README.md in poltergeist-1.18.0

- old
+ new

@@ -7,11 +7,11 @@ provided by [PhantomJS](http://phantomjs.org/). **If you're viewing this at https://github.com/teampoltergeist/poltergeist, you're reading the documentation for the master branch. [View documentation for the latest release -(1.17.0).](https://github.com/teampoltergeist/poltergeist/tree/v1.17.0)** +(1.18.0).](https://github.com/teampoltergeist/poltergeist/tree/v1.18.0)** ## Getting help ## Questions should be posted [on Stack Overflow, using the 'poltergeist' tag](http://stackoverflow.com/questions/tagged/poltergeist). @@ -205,10 +205,14 @@ This way your temporary headers will be sent only for the initial request, and related 30x redirects. All subsequent request will only contain your permanent headers. If the temporary headers should not be sent on related 30x redirects, specify `permanent: :no_redirect`. +Headers set with any of these methods will be set within all windows in the +session, with the exception of temporary headers, which are only set within the +current window. + ### Inspecting network traffic ### You can inspect the network traffic (i.e. what resources have been loaded) on the current page by calling `page.driver.network_traffic`. This returns an array of request objects. A request object has a @@ -292,9 +296,10 @@ the phantomjs browser. Useful for faking unsupported APIs. * `:port` (Fixnum) - The port which should be used to communicate with the PhantomJS process. Defaults to a random open port. * `:host` (String) - The name or IP of the PhantomJS host. Default is '127.0.0.1'. * `:url_blacklist` (Array) - Default session url blacklist - expressed as an array of strings to match against requested URLs. * `:url_whitelist` (Array) - Default session url whitelist - expressed as an array of strings to match against requested URLs. +* `:page_settings` (Hash) - PhantomJS web page settings (http://phantomjs.org/api/webpage/property/settings.html). ### URL Blacklisting & Whitelisting ### Poltergeist supports URL blacklisting, which allows you to prevent scripts from running on designated domains: