]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/commitdiff
Disable HTTP cache. https://redmine.stoutner.com/issues/1266
authorSoren Stoutner <soren@stoutner.com>
Wed, 29 Jan 2025 23:01:25 +0000 (16:01 -0700)
committerSoren Stoutner <soren@stoutner.com>
Wed, 29 Jan 2025 23:01:25 +0000 (16:01 -0700)
src/widgets/PrivacyWebEngineView.cpp

index 27cb2abafef50c9693c3514f38f83c4c35ec3b84..5a103ff809089fc0f7730b8164db1b42183e13b2 100644 (file)
@@ -40,6 +40,9 @@ PrivacyWebEngineView::PrivacyWebEngineView(QWidget *parentWidgetPointer) : QWebE
     // Create an off-the-record profile (the default when no profile name is specified).
     webEngineProfilePointer = new QWebEngineProfile(QLatin1String(""));
 
+    // Disable the HTTP cache.
+    webEngineProfilePointer->setHttpCacheType(QWebEngineProfile::NoCache);
+
     // Create a WebEngine page.
     PrivacyWebEnginePage *privacyWebEnginePagePointer = new PrivacyWebEnginePage(webEngineProfilePointer);