A good thought, but this is already set to NO.Nib wrote:Enabling and Disabling the Back-Forward List
By default, every WebView object maintains its own back-forward list object. There is some overhead in maintaining this list. If you don't want to use this feature, send a setMaintainsBackForwardList: message to your WebView object as in:
Otherwise, history items, which encapsulate visited page information, are automatically added and removed from the back-forward list as webpages are loaded and displayed in a WebView. If you maintain a back-forward list in your WebView object, then you should add some buttons to your user interface so that users can use this feature.Code: Select all
[webView setMaintainsBackForwardList:NO];
Interesting idea. It's easy to add this setting; I've uploaded a patch which makes the change to the source code to http://evands.penguinmilitia.net/pagecachesize.diff. I could post a binary for testing, but I thought it'd be a better learning experience for you to get your hands dirty getting the source code, applying a simple patch, and building. Let us know if you run into any brick walls and we'll help!And this:Setting the Page Cache
You can use back-forward lists to maintain a page cache too. Because pages in the cache are rendered quickly, using this feature improves the performance of the back-forward action methods. You can turn this feature on or off by setting the cache size using the WebBackForwardList setPageCacheSize: method. If you set the page cache size to 0, the page cache is disabled; otherwise, the size of the cache is limited to the number of pages you specify. The default page cache size may vary depending on your computer’s configuration. Use the pageCacheSize method to get the current setting.Code: Select all
- (void)setPageCacheSize:(unsigned)size