From 90f0bc1550eb0e5291f215552b22143fbe5e9398 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 9 Jul 2014 18:25:22 +0200 Subject: [PATCH] send cache headers for static phorkie .png files --- src/stub-phar.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.30.2