Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Stop NETSCAPE from using cache with LOCATION

Posted on 1997-12-14
2
Medium Priority
?
175 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
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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Suggested Courses

877 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