Disable cache in mobile Web Page
From: Super ASW via .NET 247 (anonymous_at_dotnet247.com)
Date: 11/17/04
- Previous message: Pawel Luczko: "Databinder.eval - dynamically"
- Next in thread: JuanDG: "RE: Disable cache in mobile Web Page"
- Reply: JuanDG: "RE: Disable cache in mobile Web Page"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 17 Nov 2004 01:10:05 -0800
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>LzfaBfeyOE2BEDlR5E2Oeg==</Id>
- Previous message: Pawel Luczko: "Databinder.eval - dynamically"
- Next in thread: JuanDG: "RE: Disable cache in mobile Web Page"
- Reply: JuanDG: "RE: Disable cache in mobile Web Page"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|