Lemonldap::NG::Common::CGI - Simple module to extend L to manage


Lemonldap-NG-Common documentation  | view source Contained in the Lemonldap-NG-Common distribution.

Index


NAME

Top

Lemonldap::NG::Common::CGI - Simple module to extend CGI to manage HTTP "If-Modified-Since / 304 Not Modified" system.

SYNOPSIS

Top

  use Lemonldap::NG::Common::CGI;

  my $cgi = Lemonldap::NG::Common::CGI->new();
  $cgi->header_public($ENV{SCRIPT_FILENAME});
  print "<html><head><title>Static page</title></head>";
  ...

DESCRIPTION

Top

Lemonldap::NG::Common::CGI just add header_public subroutine to CGI module to avoid printing HTML elements that can be cached.

METHODS

Top

header_public

header_public works like header (see CGI) but the first argument has to be a filename: the last modify date of this file is used for reference.

EXPORT

SEE ALSO

Top

Lemonldap::NG::Manager, CGI, http://lemonldap-ng.org/

AUTHOR

Top

Xavier Guimard, <x.guimard@free.fr>

COPYRIGHT AND LICENSE

Top


Lemonldap-NG-Common documentation  | view source Contained in the Lemonldap-NG-Common distribution.