freeside/httemplate/view cust_bill-pdf.cgi,1.3,1.4

ivan ivan at pouncequick.420.am
Fri Apr 2 05:44:59 PST 2004


Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory pouncequick:/tmp/cvs-serv32670/httemplate/view

Modified Files:
	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.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- cust_bill-pdf.cgi	2 Apr 2004 11:23:33 -0000	1.3
+++ cust_bill-pdf.cgi	2 Apr 2004 13:44:56 -0000	1.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