Current time: 12-12-2019, 06:51 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to reset browser cache in the middle of a script?
04-10-2013, 09:19 AM
Post: #1
How to reset browser cache in the middle of a script?
I have a script where I measure what I want with logData 0 before it and logData 1 preceding my navigate stuff.

However I also want to clear the browser cache before my navigate step to display the effect of browser cache. How do I do that?
Find all posts by this user
Quote this message in a reply
04-11-2013, 05:19 AM
Post: #2
RE: How to reset browser cache in the middle of a script?
If it helps, the context here is that I am trying to match WebPageTest results with that of the URL benchmarked using the Chrome Extension PageBenchmarker: https://sites.google.com/a/chromium.org/...-extension

As you can see it has the option of "Clear Cache" and Connections. When set they do not use the browser cache as well as not reuse existing sockets to that origin. In such a case the content is 900KB downloaded whereas with webpagetest I see only 50Kb downloaded due to the browser cache apart from reusing the connection.

So in order for me to replicate the same results using my Private Agent, I am looking for a way to trigger "WebBrowser::ClearUserData()" from the script.
Find all posts by this user
Quote this message in a reply
04-12-2013, 08:54 PM
Post: #3
RE: How to reset browser cache in the middle of a script?
Can you not just navigate directly to the page you are trying to test? If it's behind authentication you can just set the cookies for an existing session.

You may be able to use a "clearCache" command if you are using Chrome but I can't guarantee that it will behave exactly the same because it also clears out cookies (which may defeat what you are trying to do).
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)