Asset.php
authorAlan Knowles <alan@roojs.com>
Wed, 27 Dec 2017 04:54:37 +0000 (12:54 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 27 Dec 2017 04:54:37 +0000 (12:54 +0800)
Asset.php

index d0fd536..bc0475f 100644 (file)
--- 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 {