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.