Merge pull request #3432 from deepak1556/navigation_patch

browser: fix reloadignoringcache api
This commit is contained in:
Cheng Zhao 2015-11-16 20:55:16 +08:00
commit 1d800d5e26
3 changed files with 9 additions and 8 deletions

View file

@ -207,7 +207,13 @@ See [session documentation](session.md) for this object's methods.
* `extraHeaders` String - Extra headers separated by "\n"
Loads the `url` in the window, the `url` must contain the protocol prefix,
e.g. the `http://` or `file://`.
e.g. the `http://` or `file://`. If the load should bypass http cache then
use the `pragma` header to achieve it.
```javascript
const options = {"extraHeaders" : "pragma: no-cache\n"}
webContents.loadURL(url, options)
```
### `webContents.getURL()`