Subject: | Implement "conditional GET" |
This patch adds support for If-Modified-Since: If-*Match: for gzipped
content:
--- Compress.pm.ORiG Wed Nov 17 23:01:14 2004
+++ Compress.pm Sat Jan 26 21:49:36 2008
@@ -32,6 +32,11 @@
$fh = $r->filter_input();
} else {
$fh = Apache::File->new($r->filename);
+ $r->set_last_modified((stat $r->finfo)[9]);
+ $r->set_etag;
+ if ((my $rc = $r->meets_conditions) != OK) {
+ return $rc;
+ }
}
return SERVER_ERROR unless $fh;