|
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;
}
}
......
|