From 7c73bd69d30429423ef4fba6cad9b156b9e2dce5 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 27 Dec 2017 12:54:37 +0800 Subject: [PATCH] Asset.php --- Asset.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Asset.php b/Asset.php index d0fd5367..bc0475fa 100644 --- a/Asset.php +++ b/Asset.php @@ -100,7 +100,10 @@ class Pman_Core_Asset extends Pman { $content = gzencode( file_get_contents($fn) , 9); header('Content-Encoding: gzip'); + header('Vary: Accept-Encoding'); + header('Content-Length: '. strlen($content)); + echo $content; } else { -- 2.39.2