How to clear cache on Silverlight 4.0? - silverlight-4.0

i want to use this code but it only erase caches on mozilla browser.I want to use it for IE
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore();

Related

Can you change Visual Studio 2022's default browser for Dockerised ASP .NET Core applications?

When debugging my ASP .NET Core Web API application in Visual Studio 2022, I have the Docker configuration set to launch a browser:
This browser defaults to Edge. Is there a way to change this, to Firefox for example? That is my browser of choice and I would prefer it to simply open a new tab in an existing instance of that rather than an entirely separate Edge window.
Firefox is set as my default browser.
Thanks.
You can choose a default browser to use with the docker profile but it's not clear how to modify the list of possible browsers or if you can modify the launch settings for those browsers... anyway, from the debug toolbar menu you'll see the very small drop down menu arrow. Clicking on that gives you a series of drop down menus that lets you choose a browser.
Note the "Browse With..." does not work for me. The project rebuilds and nothing happens when I click that. And "Select Web Browsers..." gives a limited choice of chrome, edge, IE.
Turns out it does seem to use the default browser.
This is a new install of Win 11, and I had installed Firefox within the same session as my attempted debugging with it - a reboot seemed to result in VS using it as expected.
The default browser behaviour is documented here.

Bing map v8 APIs cached in IE11

In my case, Bing MAP apis are cached in IE11. If I delete only bing map related js files in cache it works well.
If I run IE11 in always refresh from server debugging mode, it also work then.
Any idea why?
when I want to make sure the browser asks the server I add a version to my request. For example https://www.bing.com/api/maps/mapcontrol?bransch=experimental&v=1. Otherwise, chrome has a nice feature, in developer tools -> settings -> network you can check 'Disable cache (while...)'

How to clear all cache of IMacro Browser?

I am using IMacro browser. It uses Internet Explorer browser. It looks like it uses some parameters from caching data.
I want to clear the cache. For that, I have tried to clear cache of Internet Explorer browser but it doesn't reflect on IMacro browser. IMacro browser still uses parameters of cached data.
I have read some reference
1- Can imacros clear ALL history, cache and cookies
2- http://wiki.imacros.net/CLEAR
3- http://forum.imacros.net/viewtopic.php?f=2&t=24378
But I don't know where to fire CLEAR command.
Do I need to fire in MS Excel VBA code where I use this?
Or
Do I need to fire somewhere in IMacro windows of application?

How to open and close browser in RFT

I am new to RFT and i just want simple script to open browser and close the same using RFT.
I tried to find solution on internet but there were solutions which i can't digest.
Help me out on this
First, you need to enable your browser. Then configure your application. After that you can use the recorder to start your configured application (this starts the browser if it is a web application) and you can also use the recorder to record the close browser action.
For starting your browser the generated code will be something like this:
startApp("nameOfTheAppYouConfigured");
For closing:
browser_htmlBrowser(document_YourDocument(), MAY_EXIT).close();
BTW: What is so difficult in following a guide like this or just using the RFT tutorials...

Aurelia with VS2015: Modifications to view not visible to the client

I'm using Aurelia with Visual Studio 2015. I started with the project as an empty ASP.NET 4.6 project. But when I change my view, I don't the see the new html elements on the browser side. It seems like the browser is caching it and not getting the new view from my server.
From the F12 tools window, I see no HTTP traffic going to the server except the fetch to get data from the Web Api service.
What server configuration is necessary to make my code updates visible on the browser?
I disable caching ... In Chrome, F12 and then click the Network tab. Check the "Disable cache" checkbox. Ctrl-F5 to clear and refresh. After that, the network tab shows request going out with HTTP Status 200 response and I see the changes. [BUT WHAT IF: I don't want to use the developer tools to control the caching. I just want the module loader to always get the file from the server?]
By default, IIS allows browsers to cache static content such as html, and image files. To avoid that, you need to disable static content cache in the web config file as follows:
<configuration>
<system.webServer>
<staticContent>
<clientCache cacheControlMode="DisableCache"/>
</staticContent>
</system.webServer>
</configuration>
UPDATE:
You also need to clear the browser cache because the html files are already cached and therefore the browser will not request them to the server. Once the browser cache is cleared and the configuration in place, you will not experience the problem anymore.