From 37f9ab9084d1808e45ea72db1d6e9ba5160f1481 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 19 Jun 2016 04:50:40 +0000 Subject: mbox: set gzip timestamp to the Unix epoch This allows consistency between different invocations from roughly the same period and is no worse for caching any any of our existing HTML and Atom feeds. We cannot set the timestamp to the end date since messages may be added to the repository while we are iterating (and this streaming mechanism will pick them up). --- lib/PublicInbox/Mbox.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/Mbox.pm') diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm index 40ca6114..79348766 100644 --- a/lib/PublicInbox/Mbox.pm +++ b/lib/PublicInbox/Mbox.pm @@ -132,7 +132,7 @@ sub new { my $buf; bless { buf => \$buf, - gz => IO::Compress::Gzip->new(\$buf), + gz => IO::Compress::Gzip->new(\$buf, Time => 0), cb => $cb, ctx => $ctx, msgs => [], -- cgit v1.2.3-24-ge0c7