summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/application.cpp3
1 files changed, 3 insertions, 0 deletions
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());