Solved

Stop NETSCAPE from using cache with LOCATION

Posted on 1997-12-14
2
169 Views
Last Modified: 2013-12-25
People can log onto my website and select a hyperlink which leads them to my F-LVE.HTM web page.  The client can submit a new FTP/IRC site and then can see the "refreshed" F-LVE.HTM with the new submission.

Behind the scenes, I have a Perl program which makes use of the HTTP header:  LOCATION  to get the browser to redirect itself to the newly updated page:
ie:  print "Location: http://mywebsite.com/f-lve.htm";

Unfortunately, Netscape (and I'm sure other browsers) uses its cache to recall the F-LVE.HTM file and so the page appears to be NOT updated even though it really is.  How do I get browsers to "actually" call my fresh F-LVE.HTM?

I have used the not-so-great OPEN command to open the file and just display its contents on screen, but I the F-LVE.HTM page has hyperlinks with respect to the main drawer: http://mywebsite.com/  not http://mywebsite.com/cgi-bin/ (which it seems to be stuck within due to the cgi program call).  Also I hate the Netscape URL location display to show http://mywebsite.com/cgi-bin/ftp.cgi and it's really showing F-LVE.HTM.

I really hope I haven't confused you all.  I'm just a little hyper right now  :>

Hope you can help!


0
Comment
Question by:mirror
[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
2 Comments
 
LVL 6

Accepted Solution

by:
alamo earned 10 total points
ID: 1831648
There are various ways to do it, all have their shortcomings though.

Simplest and only 100% sure-fire method that the user will see what you want: your "open file and print as results of form sumission" scheme. Fix the relative links by adding a base href tag e.g.
<BASE HREF="http://mywebsite.com/f-lve.htm">
and the relative links will work just fine.
People know they just submitted a form, the fact it's not the main URL is understandable to most people.

Other ways, none of which are guaranteed 100% (as if anything on the web is):

- Make your results page say something like "Results Accepted, going to main page" and use a meta tag such as
<meta http-equiv="REFRESH" content="10; URL="http://mywebsite.com/f-lve.htm">
The browsers I've seen that support that meta tag seem to get the page unconditionally. But not all support it. You could also have a link and say "if this page doesn't change in 10 seconds click here, and you may need to press Reload or Refresh".

-Change the URL you are redirecting it to, by adding ? and an argument, e.g. http://mywebsite.com/f-lve.htm?refresh. If you expect people to be submiting to the script multiple times make the query string different each time.

- Change your URL sneakily - easiest on a server such as IIS which is case-insensitive, simply change the capitalization of your page name. The client won't know the the server will ignore case. If your server doesn't ignore case, try using an alias of your webserver, if there is one (e.g. often mysite.com is mapped to same machine as www.mysite.com, and the browser generally treats them as different sites. But this won't work well if the user submits multiple times.

That's all I can think of right now, there's no universal method unfortunately. Good luck!
0
 

Author Comment

by:mirror
ID: 1831649
Alamo, you really know TOO much!  You still da man!
Do you know anything about CGI-Perl...
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

726 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