Posted on 2009-04-28 12:40:25-07 by uazz
Suggestion about modified resources - HTTP 304
Maybe it will be wise to honour If-Modified-Since request header, just like in Catalyst::Plugin::Static
sub _serve_static { my $c = shift; ....... if ( $c->req->headers->header('If-Modified-Since') ) { if ( $c->req->headers->if_modified_since == $stat->mtime ) { $c->res->status(304); # Not Modified $c->res->headers->remove_content_headers; return 1; } } ......
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.