[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 387
  • Last Modified:

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:
http://users.du.se/~h07frepe/Code/sid1.html
0
hermesalpha
Asked:
hermesalpha
  • 8
  • 6
1 Solution
 
apresenceCommented:
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):
http://users.du.se/~h07frepe/Code/sid1.html&id=1
- 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
0
 
apresenceCommented:
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">
			<tr>
					<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

0
 
apresenceCommented:
Beautiful boat, by the way...
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
hermesalphaAuthor Commented:
A real dream, it will be mine one day...
0
 
hermesalphaAuthor Commented:
aprensence,

could you post some info on how to force a no caching? Tried to delete temporary internet files, tried F5, nothing worked.
0
 
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!

WHAT SHOULD I DO?
0
 
apresenceCommented:
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:
http://users.du.se/~h07frepe/Code/sid1.html&id=201009081058AM

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:
<?php
  phpinfo();
?>

If it doesn't work, you'll get that exact text back.  Otherwise, you'll get something similar to this:
http://www.entropy.ch/software/macosx/php/test.php

* 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:
#!/usr/bin/perl
echo "The test was successful"

Same deal there.
0
 
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
0
 
apresenceCommented:
Sorry, too much switching between programming languages.  For the perl script it should be:
#!/usr/bin/perl
print "The test was successful\n";

0
 
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.
0
 
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.
0
 
hermesalphaAuthor Commented:
It was no virus at that Russian site anyway.
0
 
apresenceCommented:
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.
0
 
hermesalphaAuthor Commented:
I received advice how to deal with this issue in the long run. Temporarily, I god it fixed also.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 8
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now