Hi Slide! On Wednesday 03 Feb 2010 00:23:15 Slide wrote: > I have implemented a site using Perl, but I'm not really a Perl > programmer, and now I want to modify the code so that dynamic pages > are generated with a last-modified field to so that Google will re- > crawl the pages. > > This is what I'm doing to generate the header now .... > > print "Content-type: text/html\n\n";
You shouldn't do the line above directly. Look at CGI.pm's $cgi->header() method or the similar facilities provided by other web-server interfaces (FastCGI, Plack, etc.). > > So I think I need to precede that with > > print "Last-Modified: Tue, 02 Feb 2010 00:00:00 GMT \n"; > CGI.pm's header should have a way to set it in the print $cgi->header(@ARGs) call. Regards, Shlomi Fish > Is that right? Does the order of the header lines make any > difference? Is the format for the date in the Last-Modified line > good? -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Parody on "The Fountainhead" - http://shlom.in/towtf Deletionists delete Wikipedia articles that they consider lame. Chuck Norris deletes deletionists whom he considers lame. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/