From aaebac2ce417d7af074f86e8cce0eb44cc611332 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 12 Oct 2010 18:19:50 +0200 Subject: Enabling WebKit Page Cache feature: please, refers to http://webkit.org/blog/427/webkit-page-cache-i-the-basics/ to see what I'm referring about.. CCBUG:208132 PS: Thanks, Kilian :) --- src/application.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/application.cpp b/src/application.cpp index 7e949220..c7f24039 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -493,6 +493,9 @@ void Application::updateConfiguration() else defaultSettings->setAttribute(QWebSettings::PluginsEnabled, true); + // Enabling WebKit "Page Cache" feature: http://webkit.org/blog/427/webkit-page-cache-i-the-basics/ + defaultSettings->setMaximumPagesInCache(3); + // ===== HTML 5 features WebKit support ====== defaultSettings->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, ReKonfig::offlineStorageDatabaseEnabled()); defaultSettings->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, ReKonfig::offlineWebApplicationCacheEnabled()); -- cgit v1.2.1