All,
Can you please provide me some details of the server/client behavior under the
following scenario's in using an Applet?
Web Server used -- IIS 6.0
I am using the <Applet> tag to embed the applet in my aspx page. I had
included the following parameters for applet caching.
<param name = "cache_option" value = "Plugin"
/>
<param name = "cache_archive" value =
"DownloadManager.jar" />
Now as per the documentations for the above parameters, subsequent loading of
the Applet in the browser will happen using the local copy! Now looking into
the HTTP status code logging on the server.
I got the following server response code while accessing the portal the first
time after clearing the browser/Java plugin cache
2008-04-09 11:49:56 W3SVC335036309 192.23.184.175 GET /DownloadManager.jar -
80 - 163.185.27.3 Mozilla/4.0+(Windows+XP+5.1)+Java/1.6.0 200 0 0
From the above loggin, the server returned a status code of 200 (last
few digits of the previous line) which meant that the server sent back the
jar file successfully.
Now for the subsequent access of the same portal, I had got the following log
on server side
2008-04-09 12:00:15 W3SVC335036309 192.23.184.175 GET /DownloadManager.jar - 80
- 192.23.8.48 Mozilla/4.0+(Windows+XP+5.1)+Java/1.6.0_05 304 0
0
According to the above log file, the server had responded with status code 304
(last few digits of the previous line) , which means that the browser is
using the local copy of the Applet.
Now my questions are
1. Is my interpretation of the server loggin right?
2. Is the inclusion of <param> attributes for specifying the applet
caching right? If not can you please give me pointers to acheive the same?
Regards,
Amrish Deep