From: Alan Knowles Date: Wed, 27 Dec 2017 04:54:37 +0000 (+0800) Subject: Asset.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=7c73bd69d30429423ef4fba6cad9b156b9e2dce5 Asset.php --- 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 {