Solved

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

Posted on 2010-09-06
14
378 Views
Last Modified: 2013-12-09
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
Comment
Question by:hermesalpha
  • 8
  • 6
14 Comments
 
LVL 6

Expert Comment

by:apresence
ID: 33609364
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
 
LVL 6

Expert Comment

by:apresence
ID: 33609394
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
 
LVL 6

Expert Comment

by:apresence
ID: 33609398
Beautiful boat, by the way...
0
 

Author Comment

by:hermesalpha
ID: 33610447
A real dream, it will be mine one day...
0
 

Author Comment

by:hermesalpha
ID: 33610465
aprensence,

could you post some info on how to force a no caching? Tried to delete temporary internet files, tried F5, nothing worked.
0
 

Author Comment

by:hermesalpha
ID: 33627834
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
 
LVL 6

Accepted Solution

by:
apresence earned 500 total points
ID: 33628002
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
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 

Author Comment

by:hermesalpha
ID: 33628385
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
 
LVL 6

Expert Comment

by:apresence
ID: 33629736
Sorry, too much switching between programming languages.  For the perl script it should be:
#!/usr/bin/perl
print "The test was successful\n";

0
 

Author Comment

by:hermesalpha
ID: 33645040
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
 

Author Comment

by:hermesalpha
ID: 33645066
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
 

Author Comment

by:hermesalpha
ID: 33645067
It was no virus at that Russian site anyway.
0
 
LVL 6

Expert Comment

by:apresence
ID: 33650571
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
 

Author Closing Comment

by:hermesalpha
ID: 33866032
I received advice how to deal with this issue in the long run. Temporarily, I god it fixed also.
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now