Why does the server keep displaying the old uploaded html-file?

I use HTML-Kit, open sid1.html (where I have changed table width from 900 to 850)
and choose "View/Preview in Browser/Preview in Default Browser". It's now displaying
correct, the margins are aligned with the pictures, I'm satisfied.

I then use FileZilla to upload the corrected sid1.html to the server. I first delete the
old sid1.html from the server, then right-click on the new version and choose
"Upload". I get no error messages and yes, I have connected. Receive confirmation
that the file has been uploaded (I can see it's added to the server because I first deleted
the old version).

Despite this, when I check by typing the URL in my IE8 (or any other browser), the old sid1.html is displayed! With the margins not aligned with the pictures! I also check "View source" and yes, it's the old version there, with table width 900!

What should I do to have the new version up there? I can't do anything more than just delete the old version and upload the new one!?

This is the URL:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

apresenceConnect With a Mentor Commented:
I'm not sure why it wouldn't work after deleting your temporary internet files.  I accessed it a few days ago and got the version with 850 width, so if you clear your cache you should certainly get the latest version.

That aside however, here are two quick fixes:
1. As I suggested above, try the URL with some random unique ID at the end of it, ala:

2. Upload to a different file name, like sid2.html, and give your teacher/whoever the updated link.

Longer term, I think our best option is to use a script to force caching off via a script.

Do you know if your hosting site supports PHP or PERL?

* To find out if you can run PHP, put this in a file called test.php, upload it to your system and open http://users.du.se/~h07frepe/Code/test.php:

If it doesn't work, you'll get that exact text back.  Otherwise, you'll get something similar to this:

* To find out if you can run PERL, put this in a file called test.pl, upload it to your system and open http://users.du.se/~h07frepe/Code/test.pl:
echo "The test was successful"

Same deal there.
The problem most likely is that IE8 is caching your page.  Hit F5 to force your browser to refresh the page.  If that doesn't work, browse somewhere else, delete all your temporary internet files, close and reopen IE8 and browse to your site.  If you now see the new page, then that was your problem.

Now, that probably doesn't help you much if you want other people to always see the most current version of the page.  There are a few ways to do this:
- Best way is to configure the HTML server with an expiration time for the page, or to never allow caching for the page
- You can pass some random argument to the page to force a cache miss (you have to change it every time):
- If your server supports PHP or some other scripting language, there's a way to force no caching using some header tricks.  If this is the case, let me know and I can post more info
Yeah, I'm seeing the 850.  Gotta be your cache.
<body style="font-family: Times, serif, Georgia">
			<table width="900" summary="Exterior of the yacht Bestevaer II">
					<td><img src="images/bild1sidan1.jpg" width="850" height="562" alt="Full-length profile picture of the yacht Bestevaer II" /></td>

Open in new window

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Beautiful boat, by the way...
hermesalphaAuthor Commented:
A real dream, it will be mine one day...
hermesalphaAuthor Commented:

could you post some info on how to force a no caching? Tried to delete temporary internet files, tried F5, nothing worked.
hermesalphaAuthor Commented:
This is really crisis now, my teacher keep telling me I have to upload the corrected version, and I am doing that! But it won't get there! No matter what I do: I use FileZilla, I use WinSCP, delete the old sid1.html, upload the new sid1.html. Still the old one displays!

hermesalphaAuthor Commented:
Thanks a lot apresence for your valuable suggestions. It seems my teacher got reasonable at last though, he accepted I e-mail the files to him. I'll try your suggestions, don't want this to happen again
Sorry, too much switching between programming languages.  For the perl script it should be:
print "The test was successful\n";

hermesalphaAuthor Commented:
Something really weird is going on here... Do you think it's a virus that can cause this:

The same thing happens now when I do this:

Open my mailbox and open an attached PDF. I save this first PDF on my Desktop whereupon I return to my mailbox and go to another message, also with an attached PDF, open this PDF no. 2 also. But it's the same as PDF no. 1!!! No matter what I try: Delete browsing history in IE8, or save it first, then open. If I open PDF no. 1 it's no. 1 that is displayed, if I open PDF no. 2 (I tried to open the downloaded from the Desktop, I tried open directly from the mailbox at www.gmx.com) it's PDF no. 1 that is displayed!

The reason I ask if it can be a virus causing this is that I have a strange "do-re-mi" sound coming from my laptop, sometimes more often, sometimes quiet for a long time. Just a short sequence of "do-re-mi"-sound. And I visited a russian site I suspect contained virus some days ago.
hermesalphaAuthor Commented:
PDF no.1 and PDF no.2 have exactly the same file size. So something must go wrong the moment when I open PDF no. 2 online directly from the mailbox.
hermesalphaAuthor Commented:
It was no virus at that Russian site anyway.
The e-mail sounds like a worm (sort of like a virus) that has been going around.  The link looks like it's opening a PDF, but it really isn't.  When you open the e-mail, right click and select Copy Hyperlink, then paste it into Notepad to see what it really is.  Especially if it ends in .scr, then that's the one I'm thinking of.

That particular worm just sends an e-mail out to people in your contact list with the same attachment, but doesn't cause any real harm.  Look in your sent messages folder and if anything was sent, notify those people not to open the message.

Also, once you have the real link, you can find out who the ISP is for the site it's set up to access and get them to take the page down.
hermesalphaAuthor Commented:
I received advice how to deal with this issue in the long run. Temporarily, I god it fixed also.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.