projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47c11bc
)
Asset.php
author
Alan Knowles
<alan@roojs.com>
Wed, 27 Dec 2017 04:54:37 +0000
(12:54 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 27 Dec 2017 04:54:37 +0000
(12:54 +0800)
Asset.php
patch
|
blob
|
history
diff --git
a/Asset.php
b/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 {