git.cweiske.de
/
phorkie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9a21a1c
)
send cache headers for static phorkie .png files
author
Christian Weiske
<cweiske@cweiske.de>
Wed, 9 Jul 2014 16:25:22 +0000
(18:25 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Wed, 9 Jul 2014 16:25:22 +0000
(18:25 +0200)
src/stub-phar.php
patch
|
blob
|
history
diff --git
a/src/stub-phar.php
b/src/stub-phar.php
index 9b65f2fabdf7c7c15a4f01b44f7e90bfd0d1d506..95e894cb123d6f3420f3eff1b6acb2c76d3bc85b 100644
(file)
--- a/
src/stub-phar.php
+++ b/
src/stub-phar.php
@@
-47,7
+47,10
@@
function rewritePath($path)
$path = rewriteWithHtaccess($path);
- if (substr($path, -4) == '.css' || substr($path, -3) == '.js') {
+ if (substr($path, -4) == '.css'
+ || substr($path, -3) == '.js'
+ || substr($path, 0, 9) == '/phorkie/'
+ ) {
header('Expires: ' . date('r', time() + 86400 * 7));
}
return 'www' . $path;