diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-07-09 18:25:22 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-07-09 18:25:22 +0200 |
| commit | 90f0bc1550eb0e5291f215552b22143fbe5e9398 (patch) | |
| tree | e82e1dad7338996301d9691aa986ee03735e0c3e /src | |
| parent | 9a21a1cba3aa4d263d8e541382cb4ba0103fc19a (diff) | |
| download | phorkie-90f0bc1550eb0e5291f215552b22143fbe5e9398.tar.gz phorkie-90f0bc1550eb0e5291f215552b22143fbe5e9398.zip | |
send cache headers for static phorkie .png files
Diffstat (limited to 'src')
| -rw-r--r-- | src/stub-phar.php | 5 |
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; |
