Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Any alternate to no-cache/max-age

Hi,

Is there any way to make UP.browser not to cache WML page. I am creating
dynamic WML responses from ASP page and ontimer event causes refreshing of
this page (get it from server)

Code I have tried:
-
-
<head>
<meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
<meta http-equiv="Cache-Control" content="max-age=0" forua="true"/>
</head>
-
-

But still this page is being cached, Is there any other way to restrict
this? or any setting to be done to UP.Browser?

-Chandrashekar
[597 byte] By [Chandra] at [2007-11-9 15:29:49]
# 1 Re: Any alternate to no-cache/max-age
If you look at the Response object in ASP there are a couple of properties
you could use. One is CacheControl and the other is Expires. Between these
two I think you will got the effect you want. Just set them as one of the
first things you do on the asp page and them continue to send content with
the Repsonse.Write.
Hope this helps.
John

"Chandra" <aithal_chandrashekar@hotmail.com> wrote:
>Hi,
>
> Is there any way to make UP.browser not to cache WML page. I am creating
>dynamic WML responses from ASP page and ontimer event causes refreshing
of
>this page (get it from server)
>
>Code I have tried:
>-
>-
><head>
><meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
><meta http-equiv="Cache-Control" content="max-age=0" forua="true"/>
></head>
>-
>-
>
>But still this page is being cached, Is there any other way to restrict
>this? or any setting to be done to UP.Browser?
>
>-Chandrashekar
>
>
>
>
>
John T. Smith at 2007-11-12 0:16:31 >
# 2 Re: Any alternate to no-cache/max-age
You can use send your wml within a digest. The first portion of the digest
will contain a clear-cache instruction. The second portion of the digest
contains your new wml.

I use this technique.

-Kevin

"John T. Smith" <john@consultingsmith.com> wrote:
>
>If you look at the Response object in ASP there are a couple of properties
>you could use. One is CacheControl and the other is Expires. Between these
>two I think you will got the effect you want. Just set them as one of the
>first things you do on the asp page and them continue to send content with
>the Repsonse.Write.
>Hope this helps.
>John
>
>
>"Chandra" <aithal_chandrashekar@hotmail.com> wrote:
>>Hi,
>>
>> Is there any way to make UP.browser not to cache WML page. I am creating
>>dynamic WML responses from ASP page and ontimer event causes refreshing
>of
>>this page (get it from server)
>>
>>Code I have tried:
>>-
>>-
>><head>
>><meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
>><meta http-equiv="Cache-Control" content="max-age=0" forua="true"/>
>></head>
>>-
>>-
>>
>>But still this page is being cached, Is there any other way to restrict
>>this? or any setting to be done to UP.Browser?
>>
>>-Chandrashekar
>>
>>
>>
>>
>>
>
KMatassa at 2007-11-12 0:17:38 >
# 3 Re: Any alternate to no-cache/max-age
My approach is not to ask for the same page twice. I append parameters by
means of: page?dummyParameter=x, where x is a random or secuentially generated
number high enough. It is very easy to build from ASP pages and 100% effective.

J.A.Paris

"Chandra" <aithal_chandrashekar@hotmail.com> wrote:
>Hi,
>
> Is there any way to make UP.browser not to cache WML page. I am creating
>dynamic WML responses from ASP page and ontimer event causes refreshing
of
>this page (get it from server)
>
>Code I have tried:
>-
>-
><head>
><meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
><meta http-equiv="Cache-Control" content="max-age=0" forua="true"/>
></head>
>-
>-
>
>But still this page is being cached, Is there any other way to restrict
>this? or any setting to be done to UP.Browser?
>
>-Chandrashekar
>
>
>
>
>
J.A.Paris at 2007-11-12 0:18:41 >
# 4 Re: Any alternate to no-cache/max-age
Thanks to all for suggestions,
Finally I ended up with using dummy counter to change the url to get fresh
page.

-Chandrashekar

J.A.Paris <jparis@csc.ucm.es> wrote in message
news:3a0bdc23$1@news.dev-archive.com...
>
> My approach is not to ask for the same page twice. I append parameters by
> means of: page?dummyParameter=x, where x is a random or secuentially
generated
> number high enough. It is very easy to build from ASP pages and 100%
effective.
>
> J.A.Paris
>
> "Chandra" <aithal_chandrashekar@hotmail.com> wrote:
> >Hi,
> >
> > Is there any way to make UP.browser not to cache WML page. I am creating
> >dynamic WML responses from ASP page and ontimer event causes refreshing
> of
> >this page (get it from server)
> >
> >Code I have tried:
> >-
> >-
> ><head>
> ><meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
> ><meta http-equiv="Cache-Control" content="max-age=0" forua="true"/>
> ></head>
> >-
> >-
> >
> >But still this page is being cached, Is there any other way to restrict
> >this? or any setting to be done to UP.Browser?
> >
> >-Chandrashekar
> >
> >
> >
> >
> >
>
Chandra at 2007-11-12 0:19:42 >
# 5 Re: Any alternate to no-cache/max-age
-- I really like the dummy parameter Idea... I've been fighting with the caching
issue for some time and found a temporary solutiong by changing the case
of the page name everytime I called it... however it did not sound to me
like a good solution. Thanks again for sharing the dummy parameter idea.

"Chandra" <aithal_chandrashekar@hotmail.com> wrote:
>Thanks to all for suggestions,
> Finally I ended up with using dummy counter to change the url to get fresh
>page.
>
>-Chandrashekar
>
>J.A.Paris <jparis@csc.ucm.es> wrote in message
>news:3a0bdc23$1@news.dev-archive.com...
>>
>> My approach is not to ask for the same page twice. I append parameters
by
>> means of: page?dummyParameter=x, where x is a random or secuentially
>generated
>> number high enough. It is very easy to build from ASP pages and 100%
>effective.
>>
>> J.A.Paris
>>
>> "Chandra" <aithal_chandrashekar@hotmail.com> wrote:
>> >Hi,
>> >
>> > Is there any way to make UP.browser not to cache WML page. I am creating
>> >dynamic WML responses from ASP page and ontimer event causes refreshing
>> of
>> >this page (get it from server)
>> >
>> >Code I have tried:
>> >-
>> >-
>> ><head>
>> ><meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
>> ><meta http-equiv="Cache-Control" content="max-age=0" forua="true"/>
>> ></head>
>> >-
>> >-
>> >
>> >But still this page is being cached, Is there any other way to restrict
>> >this? or any setting to be done to UP.Browser?
>> >
>> >-Chandrashekar
>> >
>> >
>> >
>> >
>> >
>>
>
>
Esty at 2007-11-12 0:20:36 >