Diff for /loncom/interface/loncommon.pm between versions 1.6 and 1.9

version 1.6, 2001/10/05 21:35:43 version 1.9, 2001/10/31 17:44:42
Line 8 Line 8
 package Apache::loncommon;  package Apache::loncommon;
   
 use strict;  use strict;
   use POSIX qw(strftime);
 use Apache::Constants qw(:common);  use Apache::Constants qw(:common);
 use Apache::lonmsg();  use Apache::lonmsg();
   
Line 70  sub get_unprocessed_cgi { Line 71  sub get_unprocessed_cgi {
   } (split(/&/,$query));    } (split(/&/,$query));
 }  }
   
   sub cacheheader {
     my $date=strftime("%a, %d %b %Y %H:%M:%S GMT",gmtime);
     my $output .='<meta HTTP-EQUIV="Expires" CONTENT="'.$date.'" />
                   <meta HTTP-EQUIV="Cache-control" CONTENT="no-cache" />
                   <meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />';
     return $output;
   }
   
   sub no_cache {
     my ($r) = @_;
     my $date=strftime("%a, %d %b %Y %H:%M:%S GMT",gmtime);
     $r->no_cache(1);
     $r->header_out("Pragma" => "no-cache");
     $r->header_out("Expires" => $date);
   }
 1;  1;
 __END__;  __END__;

Removed from v.1.6  
changed lines
  Added in v.1.9


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>