]> err.no Git - varnish/commitdiff
Increase the period to 100000 documents
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 5 Jul 2006 10:39:09 +0000 (10:39 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 5 Jul 2006 10:39:09 +0000 (10:39 +0000)
Send CRLF instead of just LF
Vary expiry from 300 to 1800 seconds
Tack on 8 kB of blank lines

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@319 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-tools/recursor/recursor.pl

index ad5f557450c950ea5e0b1b26fe7f513504927259..f3e1b85e76b088bcc566e9b828e5f8584fd01041 100755 (executable)
@@ -9,11 +9,13 @@ use CGI;
 my $q = new CGI;
 
 my $foo = int($q->param('foo'));
-my $i = ($foo * 2) % 5000;
-my $j = ($foo * 2 + 1) % 5000;
+my $i = ($foo * 2) % 100000;
+my $j = ($foo * 2 + 1) % 100000;
 
-print $q->header(-expires=>'+60m');
+my $exp = ($foo % 1500) + 300; # 300 to 1800 seconds
+print $q->header(-expires=>"+$exp");
 
-print "<h1>Page $foo</h1>\n";
-print "<p><a href=\"/cgi-bin/recursor.pl?foo=$i\">Link $i</a></p>\n";
-print "<p><a href=\"/cgi-bin/recursor.pl?foo=$j\">Link $j</a></p>\n";
+print "<h1>Page $foo</h1>\r\n";
+print "<p><a href=\"/cgi-bin/recursor.pl?foo=$i\">Link $i</a></p>\r\n";
+print "<p><a href=\"/cgi-bin/recursor.pl?foo=$j\">Link $j</a></p>\r\n";
+print "\r\n"x4096