aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;