]> git.donarmstrong.com Git - debbugs.git/commitdiff
set cache-control for pkgreport to 300 seconds don/cachecontrol
authorDon Armstrong <don@donarmstrong.com>
Fri, 10 Jun 2016 20:48:31 +0000 (13:48 -0700)
committerDon Armstrong <don@donarmstrong.com>
Fri, 10 Jun 2016 20:48:31 +0000 (13:48 -0700)
cgi/pkgreport.cgi

index eb7a61a2101600c9196bed3ca1f8eafaf8e73293..6b92f90c54b4b3c4b9e3300db9d1079a2b934237 100755 (executable)
@@ -436,6 +436,7 @@ my $result = pkg_htmlizebugs(bugs => \@bugs,
                             (exists $param{dist})?(dist    => $param{dist}):(),
                            );
 
+print "Cache-control: public, max-age=300\n";
 print "Content-Type: text/html; charset=utf-8\n\n";
 
 print "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";