Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Clear Cache Before Scripted Browser Run

synthetics

#1

I’m just wondering if there’s a way to clear the cache before a scripted browser monitor runs. Is there code or anything I can put in the monitor to do that? I know there’s this:
$browser.manage().deleteAllCookies();

But it looks like it just clears cookies from the current page rather than clearing the browser’s cache.


#2

Hi, @BigNStrauss: There’s no need to delete cookies or clear the cache before running a Synthetics check. Each check is run in a brand new container; it’s the equivalent of unboxing a computer and immediately visiting the site. There’s a nice forum post on the topic here: