Date: Sat, 4 May 2019 18:31:19 +0000 (UTC) From: Wolfram Schneider <wosch@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r52982 - head/en_US.ISO8859-1/htdocs/cgi Message-ID: <201905041831.x44IVJm4065482@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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";
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905041831.x44IVJm4065482>