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