svn commit: r52982 - head/en_US.ISO8859-1/htdocs/cgi

Wolfram Schneider <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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";
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.