From d2685d0a7e2d75e3f334dc18babfcc53f53aa973 Mon Sep 17 00:00:00 2001 From: Damien Nozay Date: Fri, 24 Oct 2014 09:14:19 +0100 Subject: Bug 1073264 - allow attachment download to be offloaded to the webserver using X-SendFile or equivalent. r=gerv, a=glob. --- .../en/default/admin/params/attachment.html.tmpl | 28 +++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'template/en/default/admin') diff --git a/template/en/default/admin/params/attachment.html.tmpl b/template/en/default/admin/params/attachment.html.tmpl index 5efcc1106..c850802ab 100644 --- a/template/en/default/admin/params/attachment.html.tmpl +++ b/template/en/default/admin/params/attachment.html.tmpl @@ -58,5 +58,31 @@ maxlocalattachment => "The maximum size (in megabytes) of attachments to be stored " _ "locally on the web server. If set to a value lower than the " _ "maxattachmentsize parameter, " _ - "attachments will never be kept on the local filesystem." } + "attachments will never be kept on the local filesystem. " _ + "If you want to store all attachments on disk rather than in the " _ + "database, then set " _ + "maxattachmentsize parameter to 0. ", + + + xsendfile_header => + "By default, attachments are served by the CGI script. " _ + "If you enable filesystem file storage for large files using the " _ + "maxlocalattachment parameter " _ + "then you can have those files served directly by the webserver, which " _ + "avoids copying them entirely into memory, and this may result in a " _ + "performance improvement. To do this, configure your webserver appropriately " _ + "and then set the correct header, as follows:" _ + "
" _ + "Please note that attachments stored in the database cannot be offloaded " _ + "to apache/nginx/lighttpd and are always handled by the CGI script." + + } + %] -- cgit v1.2.3-24-g4f1b