?
Solved

Stop NETSCAPE from using cache with LOCATION

Posted on 1997-12-14
2
Medium Priority
?
172 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 40 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

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

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
The viewer will learn how to count occurrences of each item in an array.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

719 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