jejejeje it's quite simple, you just have to tell the browser no to store the
Easy, you just speak the universal language of the internet: HTTP.
And you’re all set. Try it and let me know how it goes.
Juan David Gomez A.
Analista de Desarrollo - PSL S.A.
"Super ASW via .NET 247" wrote:
> I have the same problem just like Kathy.I take this from microsoft.public.dotnet.framework.aspnet.mobile Archive - April 2002
> Kathy
> Hi,
> I developed some mobile internet applications using
> mobile internet tool kit and ASP.net. During the testing
> process, I usually have to make several changes and re-
> access the pages several times in a short period of time
> to test these changes. I noticed that I usually get the
> old page instead of the updated one eventhough I did
> disconnect and then reconnect to the page from my phone.
> It seems like I have cache that keep the copy of the old
> page in my phone.
> So my question is do we have any way so I can script in
> my code to make sure that it will always give a updated
> page when user access it. In other words, to clear the
> browswer cache.
>
> I have tried every code or script,but it didn't work.I think the answer is related with machine config(answer number 1)just like Simon Calver said.
> I also take this from microsoft.public.dotnet.framework.aspnet.mobile Archive -April 2002
>
> Simon Calvert
> Hi Kathy,
> Just some thoughts, to look into....
> which phone are you testing this with, is it one of those in the MMIT
> supported list? More specifically do you know the browser and version on
> this device?
> 1. There are some properties in the browsercaps section of machine.config
> that are aimed to prevent caching: requiresUniqueFilePathSuffix - adds a
> unique random # to the URL query, to prevent caching in the gateway;
> supportsCacheControlMetaTag - adds the maxage=0 cache control to the meta
> tags in the response.
>
> Write a simple test page that you hit with your device and output the
> values of these properties using
> ((MobileCapabilities)Request.Browser).HasCapability("requiresUniqueFilePathS
> uffix", "true");
>
> 2. some devices do have a means to clear the cache on the device, review
> the browser menu if you can, or if the device needs a hard reset.
>
> 3. you may be able to output other META tags for cacheability. Review the
> ASP.NET Response.Cache.SetCacheability(HttpCacheability.Private)
>
> My question is how to setting that machine.config to prevent caching(answer number 1)because i dont't really understand about the answer.
> Can somebody help me explain the the detail of the answer?
> -Thanx-
> From: Super ASW
>
> -----------------------
> Posted by a user from .NET 247 (
http://www.dotnet247.com/)
>
> <Id>ro+IHj4awUae3D+N1u8AHw==</Id>