Solved

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

Posted on 2010-09-06
14
384 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
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…
Suggested Courses

623 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