Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Browser caching problem (I think...)

Status
Not open for further replies.

chessbot

Programmer
Mar 14, 2004
1,524
US
I wrote a Java applet for my website, posted it, and checked it; it was working fine. When I updated the applet and posted the changes to the web, my browser still loaded the old version. I have tried deleting all the files in the folder but the html page and the applet still loads, leading me to believe that my browser has cached the applet. However, neither refreshes nor deleting the contents of my Temporary Internet Files folder has successfully gotten the new page to load. Can someone suggest a solution or point me to the correct forum? Thanks!

--Chessbot

There is a level of Hell reserved for probability theorists in which every monkey that types on a typewriter produces a Shakespearean sonnet.
 
As a side note (or probably a separate thread), could someone supply me with the correct code to load an applet using the <object> tag instead of the <applet> tag? Sun's code seems to be failing on me for some reason, and I would like to get rid of the deprecated tags.

--Chessbot

There is a level of Hell reserved for probability theorists in which every monkey that types on a typewriter produces a Shakespearean sonnet.
 
Are you using the <meta> Expires and <meta> pragma tags? I've found that these can help with the browser cache problem.

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">


hmmm...now about that <object> tag...try this link, it may help. :)

W3C Object Tag definitions and examples


Jay [infinity]
&quot;If the words up and down were reversed, would you trip and fall or trip and fly?&quot;
 
Also as a side note to an "already cached" problem: Go to Tools, Internet options, click on settings and then select the option "on every visit to the page". View your page again. You may have to refresh a couple times to get it to clear or you may have to wait a few minutes to let IE recognize the content is expired. :) Hope this helps!

Jay [infinity]
&quot;If the words up and down were reversed, would you trip and fall or trip and fly?&quot;
 
Oh, and I failed to mention one thing about those meta tags for content expiration. Only use those if you don't mind having all content being pulled from your server on every visit. This can be a bandwidth issue for some on limited plans depending on your content and it's size. If you change content frequently on that page and you don't have lot in terms of graphics being refreshed, then it's worth the hit because it'll be minimal. If not...well....have to research that one. :)

Jay [infinity]
&quot;If the words up and down were reversed, would you trip and fall or trip and fly?&quot;
 
I'm using firefox...

I cleared the cache and refreshed multiple times but the applet continues to appear (the old version). I think that it might be too late to add meta nocaches as the file has already been cached. This is the entire code of the page (for personal use so there isn't puch in the way of styling):
Code:
<html>
<head>
<title>Trajectory</title>
<style type="text/css">
<!--

applet,object {
	border: 3px shadow black;
	}
-->
</style>
</head>
<body>
<h3>Trajectory applet</h3>
<applet code="TrajectoryApplet.class" width="801" height="471"></applet>
<br>
<a href="TrajectoryApplet.java">View the source code of the applet</a><br>
<a href="TrajectoryPoint.java">View the code for TrajectoryPoint</a><br>
<a href="Trajectory.java">Alternate version using JFrame instead of JApplet</a>

</body>
</html>

About the object tag -- I am looking for the expected values of the attributes as well.

Thanks!

--Chessbot

There is a level of Hell reserved for probability theorists in which every monkey that types on a typewriter produces a Shakespearean sonnet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top