aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-07-09 18:25:22 +0200
committerChristian Weiske <cweiske@cweiske.de>2014-07-09 18:25:22 +0200
commit90f0bc1550eb0e5291f215552b22143fbe5e9398 (patch)
treee82e1dad7338996301d9691aa986ee03735e0c3e /src
parent9a21a1cba3aa4d263d8e541382cb4ba0103fc19a (diff)
downloadphorkie-90f0bc1550eb0e5291f215552b22143fbe5e9398.tar.gz
phorkie-90f0bc1550eb0e5291f215552b22143fbe5e9398.zip
send cache headers for static phorkie .png files
Diffstat (limited to 'src')
-rw-r--r--src/stub-phar.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stub-phar.php b/src/stub-phar.php
index 9b65f2f..95e894c 100644
--- 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;