🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.infosystems.www.servers.unix
6 messages
6 total messages Started by rosner@mars.supe Wed, 30 Aug 1995 00:00
Pragma: no-cache?????
#3701
Author: rosner@mars.supe
Date: Wed, 30 Aug 1995 00:00
29 lines
931 bytes
I have a cgi program that writes to a html file then saves it and opens
it. When i run the program i want to force the browser to reload the file.
I am using the apache server as the web server. Someone told me to use the
Pragma: no-cache and another person told me to use a mime type "as-is"

What is the prama line? And when i included a mime-type:"as-is" Netscape
told me it didn't know how toandle the file. I am using cig lib for c to
handle the cgi stuff. I simply read in the form data and write it to a
file. Then i use the cgi lib procedure show_html to show the new html
file.

How can i tell the browser to reload this??

-dave

******************************************


             David M. Rosner

         WESTbrunswick Associates
          http://catalog.com/wba

          rosner@mars.superlink.com
          rosner@aol.com

******************************************


Re: Pragma: no-cache?????
#3702
Author: tjack04@larry.cc
Date: Wed, 30 Aug 1995 00:00
20 lines
633 bytes
david rosner (rosner@mars.superlink.net) wrote:
: I have a cgi program that writes to a html file then saves it and opens
: it. When i run the program i want to force the browser to reload the file.


: How can i tell the browser to reload this??

  you open the file.. but you don't pipe/shunt it's contents
  to stdout?  that will return the file.. or.. you could forego
  opening it.. and just use the Location directive  :)

  TSJ


--
-=>       tjack04@emory.edu       <=-|-=> This correspondence is _.
-=>       Thomas S. Jackson       <=-|-=>  NOTE:
-=>  Programmer/Student Emory U.  <=-|-=>         my_words = my_opinion;


Re: Pragma: no-cache?????
#3757
Author: mwm@contessa.pho
Date: Thu, 31 Aug 1995 00:00
24 lines
1032 bytes
In <x7u46ys0du.fsf@chacal.demon.co.uk>, jrg@demon.net (James R Grinter) wrote:
> that's 'Expires:'. Get the date/time format correct. (There seems to
> be a little debate about this, as Netscape's Netsite server sends a
> different format to CERN, and those both differ from Apache.)

No debate, just multiple current practices. There are three formats
clients & servers are required to accept in HTTP/1.0:

 Preferred (from RFC 822, updated by RFC 1123): Sun, 06 Nov 1994 08:49:37 GMT
Obsolete (from RFC 850, obsoleted by RFC 1036): Sunday, 06-Nov-94 08:49:37 GMT
              Unix (ANSI C's asctime() format): Sun Nov  6 08:49:37 1994

The preferred method is the only one with both a time zone (which must
be GMT). HTTP/1.0 clients and servers must not generate Unix format
time stamps.

NetSite (1.1) and CERN (3.0) both generate the 850 format timestamp.
Apache (0.8.12x) generates the 822 format. Congrats to the Apache team
for taking the high road. Possibly you were looking at an older version
of CERN's server?

	<mike


Re: Pragma: no-cache?????
#3758
Author: jrg@demon.net (J
Date: Thu, 31 Aug 1995 00:00
19 lines
783 bytes
In article <423ai6$r6n@news.bu.edu> shishir@bu.edu (Shishir Gundavaram) writes:
> david rosner (rosner@mars.superlink.net) wrote:
> : What is the prama line? And when i included a mime-type:"as-is" Netscape
> : told me it didn't know how toandle the file. I am using cig lib for c to

'as-is' is an internal type used by Apache to send a file complete
with custom headers without requiring a cgi script. A real cpu/time
saver.

> Go ahead and use the "Pragma: no-cache" HTTP header and you'll be fine.
> You could also use the "Expired:" header with the current time, and

that's 'Expires:'. Get the date/time format correct. (There seems to
be a little debate about this, as Netscape's Netsite server sends a
different format to CERN, and those both differ from Apache.)

-- jrg.


Re: Pragma: no-cache?????
#3759
Author: shishir@bu.edu (
Date: Thu, 31 Aug 1995 00:00
21 lines
866 bytes
david rosner (rosner@mars.superlink.net) wrote:
: I have a cgi program that writes to a html file then saves it and opens
: it. When i run the program i want to force the browser to reload the file.
: I am using the apache server as the web server. Someone told me to use the
: Pragma: no-cache and another person told me to use a mime type "as-is"

: What is the prama line? And when i included a mime-type:"as-is" Netscape
: told me it didn't know how toandle the file. I am using cig lib for c to
: handle the cgi stuff. I simply read in the form data and write it to a
: file. Then i use the cgi lib procedure show_html to show the new html
: file.

Dave,

Go ahead and use the "Pragma: no-cache" HTTP header and you'll be fine.
You could also use the "Expired:" header with the current time, and
it will force the browser to reload the next time.

--Shishir


Re: Pragma: no-cache?????
#3951
Author: merlyn@stoneheng
Date: Mon, 04 Sep 1995 00:00
33 lines
1267 bytes
>>>>> "Mike" == Mike Meyer <mwm@contessa.phone.net> writes:

Mike> No debate, just multiple current practices. There are three formats
Mike> clients & servers are required to accept in HTTP/1.0:

Mike>  Preferred (from RFC 822, updated by RFC 1123): Sun, 06 Nov 1994 08:49:37 GMT
Mike> Obsolete (from RFC 850, obsoleted by RFC 1036): Sunday, 06-Nov-94 08:49:37 GMT
Mike>               Unix (ANSI C's asctime() format): Sun Nov  6 08:49:37 1994

Mike> The preferred method is the only one with both a time zone (which must
Mike> be GMT). HTTP/1.0 clients and servers must not generate Unix format
Mike> time stamps.

Like this?

	#!/usr/bin/perl
	sub arpa {
	  my @gm = split /\s+/, gmtime $_[0];
	  "$gm[0], @gm[2,1,4,3] GMT";
	}
	$NOW = arpa time;  ## get now as arpa time format

Warning: requires perl5.  but who doesn't have that by now? :-)

Just another web-head and perl hacker,
--
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@ora.com)
Web: <A HREF="http://www.teleport.com/~merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads