Incognito mode prevents local caching

This commit is contained in:
Eldon 2014-01-23 19:25:55 +00:00
parent 09b0060137
commit fdfaf496a9

View File

@ -91,7 +91,7 @@ class Chrome():
def __enter__(self):
import psutil, subprocess
self.chrome_process = subprocess.Popen([self.executable, "--disable-web-sockets", "--temp-profile", "--remote-debugging-port=%s" % self.port])
self.chrome_process = subprocess.Popen([self.executable, "--disable-web-sockets", "--incognito", "--temp-profile", "--remote-debugging-port=%s" % self.port])
start = time.time()
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)