Lemonldap::NG::Common::CGI - Simple module to extend CGI to manage HTTP "If-Modified-Since / 304 Not Modified" system.
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>"; ...
Lemonldap::NG::Common::CGI just add header_public subroutine to CGI module to avoid printing HTML elements that can be cached.
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.
Lemonldap::NG::Manager, CGI, http://lemonldap-ng.org/
Xavier Guimard, <x.guimard@free.fr>
Copyright (C) 2006, 2007, 2010 by Xavier Guimard <x.guimard@free.fr>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
To install Lemonldap::NG::Common, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lemonldap::NG::Common
CPAN shell
perl -MCPAN -e shell install Lemonldap::NG::Common
For more information on module installation, please visit the detailed CPAN module installation guide.