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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Users not seeing new file

Status
Not open for further replies.

tc3596

Technical User
Mar 16, 2001
283
0
0
Here's my problem: I have a web hosting account on Yahoo. The site has one page (index.html) and 1 file (a pdf). The web page simply opens a file up. The user has no other interaction with the site. When I have a new pdf to post (it replaces the old one), some users say that they still see the old one.

Here's my code:


<html>
<head>
<title>Frontline Fertility Newsletter</title>
<script language="JavaScript">
<!--
function Help(daLink) {
var helpWnd=window.open(daLink,"help","width=500,height=500,scrollbars=yes,dependent=yes,resizable=yes");
}
// -->
</script>
</head>
<body>
<meta http-equiv="refresh" content="1;url=http://hostingprod.com/@ffnewsletter.com/FrontlineFertilityVolume1No.1.3.pdf#zoom=100">
</body>
</html>

I thought the "<meta http-equiv="refresh" content="1;" would do it.

Does this code work with some browsers and not others? Thnaks for your help.
 
Hey There
When you look at your site can you see your updated PDF?
Cheers
Kart00n
 
First of all, why do you have a javascript function described when you are not using it? Second, the meta tag belongs inside the <head> section not <body>. That shouldn't make a difference about using the old (cached) version of the PDF file but it is good to know. You might try with the meta tags handling the caching of the page:

<meta http-equiv="Expires" content="0" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />

Also in the <head> of the document.
 
Vragabond,
The javascript came from Yahoo web hosting. I simply modified the file to pull up a pdf file. Good point though, I'll remove it. Here's my new code:

<html>
<head>

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<meta http-equiv="Cache-Control" content="no-cache" />

<title>Frontline Fertility Newsletter</title>

</head>
<body>

<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<meta http-equiv="Cache-Control" content="no-cache" />
</HEAD>


<meta http-equiv="refresh" content="1;url=http://hostingprod.com/@ffnewsletter.com/FrontlineFertilityVolume1No.1.3.pdf#zoom=100">
</body>
</html>
 
try cleaning out your cache -- that should change what they see.

zzzzzz
 
tc3596,

Did I read that right? You seem to have
<html>
<head>
.
.
.
</head>
<body>
<HEAD>
.
.
.
</HEAD>
.
.
.
</body>
</html>

You can't have a <head> element inside of a <body> element.

Wishdiak
 
Must have been a copy paste mistake:

No head tags in the body:
"....

<body>

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<meta http-equiv="Cache-Control" content="no-cache" />

<meta http-equiv="refresh" content="1;url=http://hostingprod.com/@ffnewsletter.com/FrontlineFertilityVolume1No.1.3.pdf#zoom=100">
</body>
</html>"
 
New Code:


<html>
<head>

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<META HTTP-EQUIV="Cache-Control" content="no-cache" />

<title>Frontline Fertility Newsletter</title>

</head>
<body>


<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<META HTTP-EQUIV="Cache-Control" content="no-cache" />



<meta http-equiv="refresh" content="1;url=http://hostingprod.com/@ffnewsletter.com/FrontlineFertilityVolume1No.1.3.pdf#zoom=100">
</body>

<head>

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<META HTTP-EQUIV="Cache-Control" content="no-cache" />


</head>

</html>
 

>> I found this article from Microsoft

That article relates to no browser older than IE 4.01, which I hope you're not still using... Therefore, I'd suggest you can ignore that article, and remove the [erroneous] duplicate head section.

Dan



 
So, leave the top head section there and remove the bottom one (including the contents)
 
Yup!

There's always a better way. The fun is trying to find it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top