Link prefetch not useful for top-level navigation
[WebKit-https.git] / Source / WebKit / NetworkProcess / NetworkProcess.cpp
index 0e7180d..a3b3b35 100644 (file)
@@ -270,6 +270,9 @@ void NetworkProcess::lowMemoryHandler(Critical critical)
         return;
 
     WTF::releaseFastMallocFreeMemory();
+
+    for (auto& networkSession : m_networkSessions.values())
+        networkSession.get().clearPrefetchCache();
 }
 
 void NetworkProcess::initializeNetworkProcess(NetworkProcessCreationParameters&& parameters)