cascadia-technology / ModernBrowser

10 stars 0 forks source link

How to really clear cache? #1

Open Silex opened 4 years ago

Silex commented 4 years ago

Hello,

I can't find how to clear the cache.

I know about Cache and debug.log path for CefSharp set to %AppData%/Modern Browser/, I've looked in %AppData% but there's no Modern Browser there. I searched the whole C: for it but couldn't find it either.

The problem we have is that it displays an old cached version of a custom web page, and even destroying the view and recreating it in the smart client displays the old version.

joshooaj commented 4 years ago

I haven't played too much with the Chromium cache functionality but it appears to be stored in "C:\Users\jh\AppData\Roaming\Modern Browser" on my machine. See the screenshot below for reference.

When I open the developer tools via F12, I can visit the network tab and check the box to disable the cache, then when I refresh I can see in the developer tools that the webpage assets are not all loaded from cache anymore. You could try that, but if you're seeing caching issues, then the cache folder must exist somewhere and programatically it should be in the %AppData%\Modern Browser folder. If you're able to track down the cache location and it's different, I'd definitely be interested to know where it ended up on your machine.

2020-06-25 14_49_51-Modern Browser

Silex commented 4 years ago

This is weird, I cannot enable the developper tools via F12:

************** Outer Exception **************
Type d'exception :System.MissingMethodException
Message d'exception :Méthode introuvable : 'Void CefSharp.WebBrowserExtensions.ShowDevTools(CefSharp.IWebBrowser)'.
Source d'exception :ModernBrowserShim
Site de la cible d'exception : ShowDevTools
   à ModernBrowserShim.BrowserHost.ShowDevTools()
   à ModernBrowser.BrowserViewItemWpfUserControl.BrowserViewItemWpfUserControl_OnKeyUp(Object sender, KeyEventArgs e) dans C:\Users\jh\source\repos\ModernBrowser\ModernBrowser\BrowserViewItemWpfUserControl.xaml.cs:ligne 146
   à System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   à System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   à System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   à System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   à System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   à System.Windows.Input.InputManager.ProcessStagingArea()
   à System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   à System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   à System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   à System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   à System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   à System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

************** System Info **************
Date et heure : 29.06.2020 09:54:40
Nom de la machine : STI-NVR-01
nombre de processeur :  4
version de l'os :   Microsoft Windows NT 6.2.9200.0
64 bit OS : True
64 bit process :    True
Adresse IP :    fe80::e106:79d:daa9:96a4%13 (sti-nvr-01)
Utilisateur actuel :    STI-NVR-01\Administrator

I'm logged in as Administrator, maybye that has an impact? Tried uninstalling/reinstalling Modern Browser already. We use XProtect 2020 R1.