add docs
authorRobo <hop2deep@gmail.com>
Sat, 14 Nov 2015 06:39:18 +0000 (12:09 +0530)
committerRobo <hop2deep@gmail.com>
Sat, 14 Nov 2015 06:39:18 +0000 (12:09 +0530)
docs/api/web-contents.md

index 917e0670590c156bbf0e3d993051b64efa653bf8..1c73c5713fa18bf69e96117f0ef411e2cd2df328 100644 (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()`