How to disable cache in Windows 10 on the Edge browser? - browser-cache

How to disable or delete browser cache in Windows 10 on the Edge browser?
There are no options on preferences and developer tools (F12)

Open Developer Tools then cache is disabled automatically. And click "Network" tab then click "Always refresh from server" button.
(It only works if the Developer Tools is open)

Just open Network and click on the selected icon (in the image). It will not cache till the dev tools are open.

In all edge shortcut properties (including system) add:
--disk-cache-dir=nul
and clear manually folders:
c:\Users\<USER>\AppData\Local\Microsoft\Edge\User Data\Default\Cache\
c:\Users\<USER>\AppData\Local\Google\Chrome\User Data\Default\Code Cache\
Now disk cache disable. usefull on ssd disks and working with: Chromium / Google Chrome / Opera / Edge

Related

I can't start Internet Explorer 11, always Edge is opened in Windows 10

I have to test a product on Internet Explorer but when I try to start it always Edge browser is opened. I tried to set IE as default browser but did not help. I try to set Chrome or Firefox as default but also not help. I tried to uninstall then reinstall IE component from 'Uninstall programs - Turns windows feature on or off' but also did not help.
I have upgraded my Windows to Version 1909 x64 but also before this update the problem existed. I am using a Dell Latitude E5470 laptop. I also search the IE and Edge group policy settings but I don't find anything which help solving this problem.
Your suggestions, ideas and help would be very appreciated.
Thanks.
For me, I was able to fix the behavior by searching for "Internet Explorer Compatibility" in the Edge settings panel. Then setting the "Open Sites in Edge" setting to "Never."
I have had a similar behavior in Windows 10 20H2 (As of writing this answer, the latest Windows 10 build so far). I had a scheduled task which opens a website at a given time, the command there is:
"C:\Program Files\Internet Explorer\iexplore.exe" https://some.webiste.com
After upgrading to 20H2 it always opened in Edge, also manually browsing to that website was redirected to Edge.
I found a setting in Internet Explorer under Internet Options -> Advanced Tab -> Browsing section -> Uncheck Enable third party extensions.
Note: This might need a restart to take effect and disable also other extensions but unfortunately as of this day there seems to be no other options to browse a website in IE which needs IE for one or the other reason.
Edit:
This behavior I was experiencing seems to be a DLL (ie_to_edge_bho.dll) file which comes with Edge and is being installed in IE. There is a static list of websites which get automatically redirected to Edge. Disabling this extension is greyed out and not supported out of the box, other than disabling all extensions via the option described above.
This setting lets you decide whether to open all sites not included in the Enterprise Mode Site List in Microsoft Edge. If you use this setting, you must also turn on the Administrative Templates\Windows Components\Internet Explorer\Use the Enterprise Mode IE website list policy setting and you must include at least one site in the Enterprise Mode Site List.
Enabling this setting automatically opens all sites not included in the Enterprise Mode Site List in Microsoft Edge.
Disabling, or not configuring this setting, opens all sites based on the currently active browser.
Note: If you've also enabled the Administrative Templates\Windows Components\Microsoft Edge\Send all intranet sites to Internet Explorer 11 policy setting, then all intranet sites will continue to open in Internet Explorer 11.
https://admx.help/?Category=Windows_10_2016&Policy=Microsoft.Policies.InternetExplorer::RestrictInternetExplorer
The problem was with 20H2(Microsoft Windows 10 Enterprise ver 10.0.19042) when I received the same complaint from multiple users.
So this has been sorted out using below registry fix as mentioned by #alpar
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main\EnterpriseMode and set RestrictIE value from 1 to 0
For me, the correct answer was the one provided by #josibu.
I was trying to use the performance profiler in Visual Studio 2019 for a Web project. For this function, there is no way to convince Visual Studio 2019 to use anything other than Internet Explorer. Even on Windows 11, it tries to run iexplore.exe when no such program exists. For those machines that do have Internet Explorer installed, but crippled by Microsoft, disable third party extension, as directed by #josibu.
You may get a message that the setting will not take effect until you restart your system. In my case, this was not needed. The change worked after I simply closed Internet Explorer.

How do I disable cache in Safari 11.0?

I updated Safari today to 11.0 and the 'disable cache(s)' menu item (under Develop) is missing. Anyone know the new way to effect this?
As Adam has answered there was information about disable caches added to the release notes, and I've updated my answer accordingly:
For a one-off, you can use ⌥⌘R on the page to reload from origin or ⇧⌘R from Web Inspector.
For a more permanent solution, you can tell Safari to ignore cache when loading resources by opening Web Inspector then going to the Network tab and setting the icon in the top right (it turns blue when active).
After experimentation with the option in the Network tab, it doesn't appear to behave as documented in the release notes:
The setting appears to persist until manually disabled, even when quitting Safari.
Caching appears to be disabled for all pages, not just the inspected one.
Web Inspector didn't always need to be left open.
Resources served from localhost are sometimes still served from the memory cache, even if caching is disabled in the Network tab. Restarting Safari seemed to clear this behaviour.
Safari Technology Preview Release Notes (Release 27)
Browser Changes
Added a “Reload Page From Origin” alternate menu item to the View menu. This action reloads a page without using cached resources.
Removed the Option-Command-R (⌥⌘R) keyboard shortcut from “Enter/Exit Responsive Design Mode” and mapped it to “Reload Page From Origin” instead.
Removed the Disable Caches menu item in the Develop menu. The equivalent functionality is now available through Web Inspector’s Network tab.
Web Inspector
Added “Disable Caches” toggle in the Networking tab that only applies to the inspected page while Web Inspector is open.
Safari 11.1
The appearance of the icon has changed slightly in Safari 11.1:
It looks like (according to the “Safari Technology Preview Release Notes”) that the only way is to open the “Web Inspector” and go the the “Network” tab, and click the small button to ignore the resource cache.
From my testing on Safari 11.0.3, you should restart Safari after toggling "Ignore the resource cache when loading resources".

IE9, Selenium: how to disable download prompting bar ?

I need, for testing purpose, to disable download prompting bar in IE9 (that asks for opening or saving the file), otherwise I cannot test a feature of my app that lets to download a file.
There are download managers that allow to do it, I am wondering where I may put my hands (which Window's registry) in order to remove this download prompting bar.
You can try to switch to new window and close it or execute following code.
driver.switchTo().alert().dismiss();
You don't say which language you are using, but I was able to do this using the following Ruby code.
Note that it does not touch the registry, as asked in your question, but uses the keyboard to interact with the IE9 download bar. It does not disable the download bar altogether, but effectively does the same thing by getting IE to save the file once a download has been invoked.
Selenium can't see the IE9 download bar, so you can't interact with it using Selenium.
require 'win32ole'
#assuming download has started, and IE9 download window is now visible
if $browser = "IE" then
wsh = WIN32OLE.new('Wscript.Shell')
wsh.AppActivate('My webpage - Windows Internet Explorer')
sleep 1
wsh.SendKeys('%s;') # $browser.send_keys #doesn't work - because IE download window is not on the web page.
end

Clear session cookies in ie11?

in previous versions of IE the F12 dev tools had several option for cache and cookie management, but in the new IE 11 version (on the network tab) the option to clear / delete session cookies seems to be missing, does anyone know where to find it, (or how to accomplish this)
ps- no, "close IE and restart" is not a solution
There's a Clear Cookies for Domain button at the top center of the Network tab in the remodeled F12 tools.
To clear ALL session cookies, in the address bar, type:
javascript:document.execCommand("ClearAuthenticationCache")
and hit enter. Note that you must type this command yourself; if you copy/paste it, IE will delete the javascript: at the front of the string for security reasons.
Press F12 to open Developer Tools, go to Console tab, enter this Javascript command
document.execCommand("ClearAuthenticationCache")
I tried and saw that typing in address bar won't work.

IE 10 not using AppCache after browser closed

I wrote an application using the HTML5 Cache Manifest and I'm having a problem using it in IE 10.
I used Fiddler to witness the manifest file being downloaded and all resources fetched on the initial load of the application. If I disable my network adapter to force the machine offline, the application continues to work as expected as long as I don't close the browser window.
However, when I close the browser window, then attempt to re-open the page from a favorite, IE 10 tells me "You're not connected to a network". Obviously I know that, I'm trying to use the app offline. These exact steps work in Chrome.
Is this behavior by design? Is there a workaround? I can't test with IE 11 right now...is this different in IE 11?
Hearing of some issues of the appcache clearing if your company utilizes gpo settings and has "empty temporary internet files folder when browser is closed" enabled.
Did you find the answer to this? I have the same problem. I did get a bit further though. I found that if you go to the IE10 File menu option and tick Work Offline then try and access your cached app it loads the page but I still have an issue as it does not appear to be using the javascript file that should also be cached. All works ok on Google Chrome but our clients are restricted to IE so Chrome is not an option.