소스 검색

feature/EK-3320

ryan 1 개월 전
부모
커밋
7e79855c4d
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      common/libs/export/BaseExport.php

+ 4 - 0
common/libs/export/BaseExport.php

@@ -1964,6 +1964,10 @@ ORDER;
 //            $pdf->Image('@' . $image, 15, 12, 20, 7, 'JPG');
             $pdf->writeHTML($context);
 
+            // 在输出PDF之前添加
+            header("Cache-Control: no-cache, no-store, must-revalidate");
+            header("Pragma: no-cache");
+            header("Expires: 0");
             $result = $pdf->Output($realFile, 'F');
 
             $this->_updateFirst($realFile, 1);