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

2000-12-10 Thread Gerald Richter
Thanks Roman for your description. I have two annotations: > If you have a simple Embperl page, the following code near the top of > the page (after setting any headers, but before generating any HTML output) > will handle conditional requests > > [- # set modification date and handle conditional

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 in the reply if the page hasn't been m