Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: OCX version update in IE5 cache


Message #1 by hubert.retif@e... on Wed, 7 Mar 2001 17:25:36
I have the following htm file which refers to an ocx component (packed in 
a cab file):

<HTML>

<head>
<% Response.CacheControl = "no-cache" %>
<% Response.AddHeader "Pragma", "no-cache" %>
<% Response.Expires = -1 %> 
<title>Frontlog Client</title>
</head>

<body bgcolor="#0000C080" topmargin="0" leftmargin="0">
<p align="Center">
<object id="APClientForm" classid="clsid:3023AD43-C4EF-11D3-A12A-
002018670166" codebase="apclient.cab#version=1,1,0,20" width="100%" 
height="100%">
  <param name="ServerAddress" value="253.166.12.168">
</object>
</p>
</HTML>

By the first read, the ocx component is loaded in the cache memory of IE5.

Now, a new version needs to be installed. I generate a new cab file and 
increment the version number (1,1,0,21) in the htm file. The next time the 
htm file is read, the new version is detected and the new ocx component is 
loaded.

The problem is that although the new version is detected and downloaded to 
the client machine, the current version is not removed from IE5 cache and 
replaced by the new one.

  Return to Index