Answers for "how to clear cache on code"

4

how to clear cache

ChromeDriver chromeDriver = new ChromeDriver();

    chromeDriver.manage().deleteAllCookies();
    chromeDriver.get("chrome://settings/clearBrowserData");
    chromeDriver.findElementByXPath("//settings-ui").sendKeys(Keys.ENTER);

    return chromeDriver;
Posted by: Guest on February-04-2021
0

delete require cache

//Use this if you want to require a file with updated contents,
//without restarting the  Node js server
delete require.cache[require.resolve('./b.js')]
Posted by: Guest on January-03-2022

Code answers related to "how to clear cache on code"

Browse Popular Code Answers by Language