I have a CefSharp browser on my WPF page. It has cached some javascript/HTML. How can I clear the cache? In the browser, I would use "ctrl + f5". I really when the component is loaded I would want to get a fresh version of the files each time.
Related
I'm working on an ASP.NET Core/Angular project. I don't understand why browsers are not pulling the last version of my JavaScript. Yet when I look at the output folder (wwwwroot/ClientApp/app), all the JavaScript files and their corresponding map files are up to date.
I've pressed Ctrl + Refresh to force browsers to request newer version, but nothing is happening. They still have the older versions. Same is true with the HTML.
The MVC part works just fine, i.e. any change is being reflected by the browser.
What else can be done to push browsers to refresh the pages?
This is a common issue with HTML files especially -
While in development, you can set the browser to disable the cache when dev tools are open
1 - Right Click Inspect element OR Ctrl + Shift + I
2 - Go to settings
3 - Disable the cache when Dev Tools is open
you could also see if the checkbox is checked under network tab Also you can disable the cache under Network tab to force a refresh
after disabling the cache keep Dev tools open and refresh the page
remove your browser cookies and cache, or try this:
use another browser
change app url or port so the browser will retrieve a fresh resources
Each time i do changes in my Angular template (html file) i need to clear my browser cache and refresh the browser so the changes can be applied. Is there a way to avoid that ?
I'm using Chrome and Firefox.
Thanks
If you have the developer tools console open, then press F1 and select 'Disable Cache (while devtools is open)' (for chrome)
I'm running a Silverlight out-of-browser desktop application that downloads a bunch of images from an HTTP server. It seems as though Silverlight has a local image cache that it uses for the images, even across multiple instantiations of the application. If I update an image on the HTTP server, I would like the updated image to be displayed in the Silverlight application, rather than the version of the image stored in the Silverlight image cache. How do I go about clearing the image cache on my machine?
Clearing my web browser's image cache doesn't work here because the Silverlight application is running as an out-of browser desktop application.
Note: I'm not interested in clearing the cache programmatically, I want to be able to do this by either changing a setting on my machine (to disable the image cache) or deleting a directory where the images are stored.
To clear the Silverlight cache, use the following steps:
1) Start up the Silverlight application of interest
2) Right click anywhere inside the application and click ‘Silverlight’
3) Click on the “Application Storage” Tab
4) Choose the application (website) of interest and click "Delete..."
-or-
4) Click "Delete All" to delete the cache for all Silverlight applications
If you don't want applications to ever cache, clear the "Enable application storage" checkbox, but this is not necessarily recommended.
http://www.microsoft.com/getsilverlight/resources/documentation/AppStorage.aspx
Apparently you are correct. It is broken.
Found this link which may explain the problem and a workaround: Caching of, in, and around your Silverlight application (part 1)
We're seeing some crazy behavior using Silverlight 4 on IE, on some machines, in some configurations. Here's the scenario
1) Silverlight controls used in our own custom Sharepoint WebParts (loading using the tag)
2) 2 web-part-containing-Silverlight instances on a page. That means 2 object tags, both pointing to the same XAP file but loading different user controls from that XAP
On some pages (but not all), the Silverlight loading seems to get stuck. The Silverlight controls don't render, the object tags' onload handler isn't called, and Fiddler is showing that the XAP isn't even being downloaded. Some interaction with IE (sometimes it's hovering over the control, sometimes it's clicking on the control region) can kickstart the loading process again, and the xap will download, onload is fired, and the controls are rendered. If I let it sit for a long time (like 2-3 minutes), sometimes the loading will resume and finish (but not always).
Since it hasn't even downloaded the XAP yet, it's not something in our code - it just seems like the loading gets blocked for some reason.
This only happens on IE, not on Chrome or Firefox. We've seen it on IE8 and IE7. It doesn't happen on every page with 2 SL controls, so the page contents seems to matter. We've also seen the problem running the web parts on straight ASP.NET (outside of Sharepoint), though much less frequently.
I've tried debugging with WinDBG, and it looks like some threads are in the guts of coreclr, but there's no debug symbols so I can't deduce much.
I was using webpart for Silverlight app in SharePoint. But finally found that its not the issue with webpart. In my case I removed all webpart from the default page and finally found that SharePoint default page is not loading.. I was using IE 9.
Solution: At the end I found that it was an issue related to Active X control. So I gone to Advance tab of Internet Options and did reset/restore all settings. Then once i started browsing the default page of the SharePoint website. Then ActiveX run request pops up. I allowed the ActiveX from Microsoft Corporation. Now Sharepoint default page is loading properly..
This happened to me as well. I have multiple XAPs loaded in one page and IE (sometimes Safari) just don't do anything. Nothing gets loaded. By using the Javascript API, it waits till the document is ready before embedding the tags. This way IE can take its time processing JS, CSS, HTML, MetaTags, etc, and then silverlight loads when everything is processed.
Inside my Silverlight app, i use reflection to load an assembly. While the app is running, the version and content of that assembly can change. I know the moment, when it changes, now I want to trigger the complete reload of the app, so that assembly is reloaded too with the new version. How to do that?
You can reload the page that hosts the silverlight application, so the application is also reloaded: it's just one line:
System.Windows.Browser.HtmlPage.Document.Submit();
If you have problems with the browser's cache, check out this question:
How do you force Firefox to not cache or re-download a Silverlight XAP file?