Remove releasenotes from build.xml
[phorkie.git] / src / stub-phar.php
index 9b65f2fabdf7c7c15a4f01b44f7e90bfd0d1d506..859152bf8c6d6e3993ec3ef00ab64efb83bc0f5d 100644 (file)
@@ -9,7 +9,7 @@
  * @author    Christian Weiske <cweiske@cweiske.de>
  * @copyright 2014 Christian Weiske
  * @license   http://www.gnu.org/licenses/agpl.html GNU AGPL v3
- * @link      http://phorkie.sf.net/
+ * @link      https://cweiske.de/phorkie.htm
  */
 if (!in_array('phar', stream_get_wrappers()) || !class_exists('Phar', false)) {
     echo "Phar extension not avaiable\n";
@@ -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;