Antw: last modified

2001-11-27 Thread Mayr
hi, I don't kinow if this is waht you are looking for but I use this code for the last modified bit [#get the lastmodified date...#] [- use POSIX; $modified_date = (stat($0))[9]; $modified_date = POSIX::strftime("%B %d, %Y",localtime($modified_date)); -] and it, tho

last modified

2001-11-27 Thread Jaak
Hi! I browsed embPerl archives and found that [+ localtime(($req_rec->finfo)[9]); +] is the best way to display last modified information. But I get: Thu Jan 1 03:00:00 1970. I think $req_rec doesn't get information. What can I do to prevent that? I'm using embPerl with mod_

Re: How to set the Last-Modified header for Embperl pages

2000-12-10 Thread Gerald Richter
n the future. Especialy for Embperl 2.0 I have plans to move some of the startup code into C, because it takes a lot of time for small pages and in this case _ will be undefined. Fortunately I also have plans to build this sending of the last-modified header and the 304 response directly into E

How to set the Last-Modified header for Embperl pages

2000-12-03 Thread Roman Maeder
Greetings, Embperl hackers! here's a recipe for setting the "Last-Modified" response header and handling conditional requests with the "If-Modified-Since" request header under mod_perl. The idea is to return a "304 not modified" status code and omit the body i