Disable browser cache
|
02-28-2013, 04:29 AM
Post: #1
|
|||
|
|||
Disable browser cache
Hi.
"First view" is a test that done with a browser that had its cache. right ? Is there a way to disable browser cache for first view ? Thx |
|||
02-26-2014, 07:10 AM
Post: #2
|
|||
|
|||
RE: Disable browser cache
Hi, I am also curious to know the answer of this question.
Is there a step where we can login via a script -> turn off cache and then use logData command to record the data. Thanks. |
|||
02-26-2014, 09:46 AM
Post: #3
|
|||
|
|||
RE: Disable browser cache
Not sure I 100% understand. "First View" has all of the normal browser caches enabled but they are completely clear before each run so disabling it doesn't really make any sense.
As far as clearing a cache mid-script, that's a lot trickier because we can clear the disk cache but a lot of browsers also have an in-memory cache which may or may not get cleared (there is a clearCache script command that should work on Chrome and IE but your mileage may vary). If you really need a clear cache as well as authentication, the best way is to record a session cookie from your local browser and use the setCookie command to populate the test with the same session. As a bonus it's also safer because you can log out on your desktop and the cookie becomes invalid. |
|||
03-01-2014, 07:56 AM
(This post was last modified: 03-01-2014 09:45 AM by Pranjal.)
Post: #4
|
|||
|
|||
RE: Disable browser cache
setCookie does not work for me !! Tried it out in the desktop version as well.
Can someone please post an example ? I am just trying to see where I am making a mistake. The desktop version returns a 'script error' : failed for it. Thanks. My exact question is, which cookie should be passed and the syntax ? I can see multiple cookies in the request header, and the syntax in the documentation is only for one. Using the Firefox Extension - View Cookies, there can be several cookies on the page. |
|||
03-05-2014, 03:17 AM
Post: #5
|
|||
|
|||
RE: Disable browser cache
You can pass multiple set cookie commands, one for each cookie.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)