svn commit: r52982 - head/en_US.ISO8859-1/htdocs/cgi
Wolfram Schneider
wosch at FreeBSD.org
Sat May 4 18:31:20 UTC 2019
Author: wosch
Date: Sat May 4 18:31:19 2019
New Revision: 52982
URL: https://svnweb.freebsd.org/changeset/doc/52982
Log:
our front-end proxy+cache cannot handle streaming of large data sets very well
Modified:
head/en_US.ISO8859-1/htdocs/cgi/man.cgi
Modified: head/en_US.ISO8859-1/htdocs/cgi/man.cgi
==============================================================================
--- head/en_US.ISO8859-1/htdocs/cgi/man.cgi Sat May 4 18:28:58 2019 (r52981)
+++ head/en_US.ISO8859-1/htdocs/cgi/man.cgi Sat May 4 18:31:19 2019 (r52982)
@@ -55,6 +55,9 @@ $www{'title'} = 'FreeBSD Manual Pages';
$www{'home'} = 'https://www.FreeBSD.org';
$www{'head'} = $www{'title'};
+# set to zero if your front-end cache has low memory
+my $download_streaming_caching = 0;
+
#$command{'man'} = '/usr/bin/man'; # 8Bit clean man
$command{'man'} = '/usr/local/www/bin/man.wrapper'; # set CPU limits
@@ -1147,6 +1150,9 @@ sub download {
$filename =~ s/\s+/_/;
$filename = &encode_url($filename);
$filename .= '.tgz';
+
+ # bypass caching proxies which cannot handle streaming of large data very well
+ print qq{Cache-Control: no-cache, no-store, private, max-age=0\n} if $download_streaming_caching == 0;
print qq{Content-type: application/x-tgz\n}
. qq{Content-disposition: attachment; filename="$filename"\n} . "\n";
More information about the svn-doc-head
mailing list