freeside/httemplate/view cust_bill-pdf.cgi,1.1.2.3,1.1.2.4
ivan
ivan at pouncequick.420.am
Fri Apr 2 05:45:28 PST 2004
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory pouncequick:/tmp/cvs-serv32673/httemplate/view
Modified Files:
Tag: FREESIDE_1_4_BRANCH
cust_bill-pdf.cgi
Log Message:
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
Index: cust_bill-pdf.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_bill-pdf.cgi,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -d -r1.1.2.3 -r1.1.2.4
--- cust_bill-pdf.cgi 2 Apr 2004 11:23:39 -0000 1.1.2.3
+++ cust_bill-pdf.cgi 2 Apr 2004 13:45:26 -0000 1.1.2.4
@@ -8,6 +8,10 @@
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 %>
More information about the freeside-commits
mailing list