Re: Returning 304 Not Modified

2006-04-12 Thread Geoffrey Young
Octavian Rasnita wrote: > I have made a perl module that does: > > > > my $status = $params->{r}->meets_conditions(); > > > > if ($status) { > $params->{r}->custom_response($status, "Pagina nu a fost modificata"); > return; > } > that usage is wrong. it should be if ((my $status = $r

Returning 304 Not Modified

2006-04-12 Thread Octavian Rasnita
Hi, I am working on a program that should return HTTP/1.1 304 Not Modified if the page meets the conditions specified in the browser's request. (And I might need to return other status codes in the future). I have made a perl module that does: my $status = $params->{r}->meets_conditions(