update changelog and release version 0.4.0
[phancap.git] / src / phar-stub.php
index 5188983d2739e548a0feaa9ac5418325defaaea1..c8e168fd1352570f97b1b4238e9c5ce2570ce9d9 100644 (file)
@@ -39,9 +39,13 @@ function rewritePath($path)
             . '/';
         header('Location: ' . $url);
         exit(0);
-    } else if$path == '/') {
+    } else if ($path == '/') {
         return 'www/index.php';
     }
+
+    if (substr($path, -4) == '.css') {
+        header('Expires: ' . date('r', time() + 86400 * 7));
+    }
     return 'www' . $path;
 }