Does anyone know how to prevent PocketIE (in PPC 2003) from caching
pages? I am using the HTTP Server from the PPC 2003 SDK to deliver
the pages, and I have tried all of the following to prevent the
caching of a page containing a form (so that I can reload the form
page and post it again, rather than seeing the last posting results
until I clear the cache manually):

In ASP at the top of the page:
Response.AddHeader "Cache-control", "no-cache, must-revalidate"
(Response.CacheControl is not supported in the PPC HTTPServer)

In the page header:
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">

I continue to get the "results" version of the page (showing the
results from submitting the form) after my first submit until I go
into Tools->Options... and manually click the "Delete Files" button.
Any suggestions or pointers would be appreciated.

Thanks,

Jon

Re: PocketIE no-cache directives ignored by google

google
Wed Jan 28 13:30:43 CST 2004

google.user@mail.com (Jon) wrote in message news:<4f9766aa.0401201438.4ad836cf@posting.google.com>...
> Does anyone know how to prevent PocketIE (in PPC 2003) from caching
> pages? I am using the HTTP Server from the PPC 2003 SDK to deliver
> the pages, and I have tried all of the following to prevent the
> caching of a page containing a form (so that I can reload the form
> page and post it again, rather than seeing the last posting results
> until I clear the cache manually):
>
> In ASP at the top of the page:
> Response.AddHeader "Cache-control", "no-cache, must-revalidate"
> (Response.CacheControl is not supported in the PPC HTTPServer)
>
> In the page header:
> <meta http-equiv="Cache-Control" content="no-cache">
> <meta http-equiv="Pragma" content="no-cache">
> <meta http-equiv="Expires" content="0">
>
> I continue to get the "results" version of the page (showing the
> results from submitting the form) after my first submit until I go
> into Tools->Options... and manually click the "Delete Files" button.
> Any suggestions or pointers would be appreciated.
>
> Thanks,
>
> Jon


Well, I found this reference to Windows CE .NET 4.2 registry settings:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceie55/html/coconInternetExplorer55RegistryKeys.asp

I tried adding a SnycMode5 key (set to 3, which should be "Always
check for updates") to
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\windows\CurrentVersion\Internet
Settings\], but that doesn't seem to have any effect. Apparently PIE
doesn't pay any attention to this key. I can't seem to find any way
to keep my pages from caching on Pocket Internet Explorer, and all of
the other options I've found are built on top of HtmlView.dll, so they
end up with the same caching problem. If anyone stumbles onto any
other options, I would very much appreciate the help.

Thanks again,

Jon

Re: PocketIE no-cache directives ignored by google

google
Fri Jan 30 16:33:25 CST 2004

Ever get the feeling that you're entirely alone in the world...

I may be only talking to myself here, but just on the off chance that
anyone finds this of interest, I have come to the conclusion that
there is no way to force/cajole/convince Pocket Internet Explorer to
stop caching web pages in PocketPC 2003. My ASP page that displays
the contents of a .cdb file never gets updated after a viewing unless
I clear the cache first.

The only way I've managed to get around this is to embed PIE in an
application and consume the BeforeNavigate event of the browser
control. In my event handler I delete all of the files in the IE
cache folder (as indicated by the Cache value from the
[HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders] registry key). I just tack on Content.IE5 to the folder
listed and then delete everything in the subfolders of that folder. I
don't know if that's the best way to do things, but it seems to work
OK so far.

Jon


google.user@mail.com (Jon) wrote in message news:<4f9766aa.0401281130.2b2091da@posting.google.com>...
> google.user@mail.com (Jon) wrote in message news:<4f9766aa.0401201438.4ad836cf@posting.google.com>...
> > Does anyone know how to prevent PocketIE (in PPC 2003) from caching
> > pages? I am using the HTTP Server from the PPC 2003 SDK to deliver
> > the pages, and I have tried all of the following to prevent the
> > caching of a page containing a form (so that I can reload the form
> > page and post it again, rather than seeing the last posting results
> > until I clear the cache manually):
> >
> > In ASP at the top of the page:
> > Response.AddHeader "Cache-control", "no-cache, must-revalidate"
> > (Response.CacheControl is not supported in the PPC HTTPServer)
> >
> > In the page header:
> > <meta http-equiv="Cache-Control" content="no-cache">
> > <meta http-equiv="Pragma" content="no-cache">
> > <meta http-equiv="Expires" content="0">
> >
> > I continue to get the "results" version of the page (showing the
> > results from submitting the form) after my first submit until I go
> > into Tools->Options... and manually click the "Delete Files" button.
> > Any suggestions or pointers would be appreciated.
> >
> > Thanks,
> >
> > Jon
>
>
> Well, I found this reference to Windows CE .NET 4.2 registry settings:
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceie55/html/coconInternetExplorer55RegistryKeys.asp
>
> I tried adding a SnycMode5 key (set to 3, which should be "Always
> check for updates") to
> [HKEY_CURRENT_USER\SOFTWARE\Microsoft\windows\CurrentVersion\Internet
> Settings\], but that doesn't seem to have any effect. Apparently PIE
> doesn't pay any attention to this key. I can't seem to find any way
> to keep my pages from caching on Pocket Internet Explorer, and all of
> the other options I've found are built on top of HtmlView.dll, so they
> end up with the same caching problem. If anyone stumbles onto any
> other options, I would very much appreciate the help.
>
> Thanks again,
>
> Jon

Re: PocketIE no-cache directives ignored by ddl

ddl
Fri Jan 30 18:37:27 CST 2004

In article <4f9766aa.0401301433.1c0bd07a@posting.google.com>, google.user@mail.com (Jon) writes:
| Ever get the feeling that you're entirely alone in the world...
|
| I may be only talking to myself here, but just on the off chance that
| anyone finds this of interest, I have come to the conclusion that
| there is no way to force/cajole/convince Pocket Internet Explorer to
| stop caching web pages in PocketPC 2003. My ASP page that displays
| the contents of a .cdb file never gets updated after a viewing unless
| I clear the cache first.

I gave up on trying to stop the caching and instead made the pages look
unique by adding an (ignored) time=xxxxx argument to the URL. Can you
do something like that?

Dan Lanciani
ddl@danlan.*com

Re: PocketIE no-cache directives ignored by google

google
Tue Feb 03 09:28:15 CST 2004

Dan,

I haven't tried that yet, but I can give it a go. One problem that
I've had, though, is that some form pages resubmit if the user clicks
the "back" button. I guess I could use the timestamp as a unique key
and abort saving the data when I detect that the form has already been
submitted. It's worth a try, anyway.

Thanks,

Jon


ddl@danlan.*com (Dan Lanciani) wrote in message news:<1215415@news1.IPSWITCHS.CMM>...
> In article <4f9766aa.0401301433.1c0bd07a@posting.google.com>, google.user@mail.com (Jon) writes:
> | Ever get the feeling that you're entirely alone in the world...
> |
> | I may be only talking to myself here, but just on the off chance that
> | anyone finds this of interest, I have come to the conclusion that
> | there is no way to force/cajole/convince Pocket Internet Explorer to
> | stop caching web pages in PocketPC 2003. My ASP page that displays
> | the contents of a .cdb file never gets updated after a viewing unless
> | I clear the cache first.
>
> I gave up on trying to stop the caching and instead made the pages look
> unique by adding an (ignored) time=xxxxx argument to the URL. Can you
> do something like that?
>
> Dan Lanciani
> ddl@danlan.*com

Re: PocketIE no-cache directives ignored by Jay

Jay
Tue Feb 03 13:41:25 CST 2004

Sorry I'm late to this thread. Could you supply some examples of the caching
behavior that is not working?

I'd like to ensure these issues are addressed in future releases.

Thanks

--
Jay McLain [MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.

"Jon" <google.user@mail.com> wrote in message
news:4f9766aa.0402030728.ca64289@posting.google.com...
> Dan,
>
> I haven't tried that yet, but I can give it a go. One problem that
> I've had, though, is that some form pages resubmit if the user clicks
> the "back" button. I guess I could use the timestamp as a unique key
> and abort saving the data when I detect that the form has already been
> submitted. It's worth a try, anyway.
>
> Thanks,
>
> Jon
>
>
> ddl@danlan.*com (Dan Lanciani) wrote in message
news:<1215415@news1.IPSWITCHS.CMM>...
> > In article <4f9766aa.0401301433.1c0bd07a@posting.google.com>,
google.user@mail.com (Jon) writes:
> > | Ever get the feeling that you're entirely alone in the world...
> > |
> > | I may be only talking to myself here, but just on the off chance that
> > | anyone finds this of interest, I have come to the conclusion that
> > | there is no way to force/cajole/convince Pocket Internet Explorer to
> > | stop caching web pages in PocketPC 2003. My ASP page that displays
> > | the contents of a .cdb file never gets updated after a viewing unless
> > | I clear the cache first.
> >
> > I gave up on trying to stop the caching and instead made the pages look
> > unique by adding an (ignored) time=xxxxx argument to the URL. Can you
> > do something like that?
> >
> > Dan Lanciani
> > ddl@danlan.*com



Re: PocketIE no-cache directives ignored by ddl

ddl
Tue Feb 03 21:57:42 CST 2004

In article <4f9766aa.0402030728.ca64289@posting.google.com>, google.user@mail.com (Jon) writes:
| Dan,
|
| I haven't tried that yet, but I can give it a go. One problem that
| I've had, though, is that some form pages resubmit if the user clicks
| the "back" button.

You can't have it both ways. :( If you force the browser to reload the page
each time then the form submission (which is, after all, just a URL fetch)
will have to occur each time. But this is a standard problem that you have
to deal with in any case.

| I guess I could use the timestamp as a unique key
| and abort saving the data when I detect that the form has already been
| submitted.

When my cgi routines are invoked by a URL which implies an effect (i.e.,
state change of any kind) they perform the requested action and spit out
a redirect to a new URL which displays the desired result but which itself
has no effect. With PIE, a "back" from this new URL does not return to
the effective URL (as resulted from the form submission) but to the original
form. This is not the case on other browsers, but at least there it still
protects you from "reload" triggering a repeat action.

Sometimes I think cgi is a trap. At first it looks like you can implement
these little minimally-interactive applications without writing any client
code--a great bargain. Then you realize that browser behavior varries enough
that you often have to special-case per client type. By the time you've
invested enough effort to get something working it's too late to admit that
the interface is just a bit too sluggish and there are a few quirks that you
can't eliminate...

| It's worth a try, anyway.
|
| Thanks,
|
| Jon
|
|
| ddl@danlan.*com (Dan Lanciani) wrote in message news:<1215415@news1.IPSWITCHS.CMM>...
| > In article <4f9766aa.0401301433.1c0bd07a@posting.google.com>, google.user@mail.com (Jon) writes:
| > | Ever get the feeling that you're entirely alone in the world...
| > |
| > | I may be only talking to myself here, but just on the off chance that
| > | anyone finds this of interest, I have come to the conclusion that
| > | there is no way to force/cajole/convince Pocket Internet Explorer to
| > | stop caching web pages in PocketPC 2003. My ASP page that displays
| > | the contents of a .cdb file never gets updated after a viewing unless
| > | I clear the cache first.
| >
| > I gave up on trying to stop the caching and instead made the pages look
| > unique by adding an (ignored) time=xxxxx argument to the URL. Can you
| > do something like that?
| >
| > Dan Lanciani
| > ddl@danlan.*com