summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorivan <ivan>2004-04-02 13:44:56 +0000
committerivan <ivan>2004-04-02 13:44:56 +0000
commite5f676566d9fd2dd61d5e48c26ccd9f4387f8cc8 (patch)
tree7837c3b4bcb440bc75ec8e612489057b8787c8c7 /httemplate/view
parentea72b6b09a472a989e60fe5bba1884a629907e37 (diff)
remove Pragma:no-cache header, and set Content-Length and Cache-Control for viewing .pdf invoices with IE over SSL. http://support.microsoft.com/default.aspx?scid=kb;en-us;323308
Diffstat (limited to 'httemplate/view')
-rwxr-xr-xhttemplate/view/cust_bill-pdf.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/view/cust_bill-pdf.cgi b/httemplate/view/cust_bill-pdf.cgi
index 4578b7b9c..2a86c3246 100755
--- a/httemplate/view/cust_bill-pdf.cgi
+++ b/httemplate/view/cust_bill-pdf.cgi
@@ -8,6 +8,10 @@ my $invnum = $1;
my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});
die "Invoice #$invnum not found!" unless $cust_bill;
+my $pdf = $cust_bill->print_pdf;
+
http_header('Content-Type' => 'application/pdf' );
+http_header('Content-Length' => length($pdf) );
+http_header('Cache-control' => 'max-age=60' );
%>
-<%= $cust_bill->print_pdf %>
+<%= $pdf %>