add redirect config option
[phancap.git] / src / phancap / Config.php
index 4d7c7a0f75f7e11272b5313eb97710757311b639..1bb43796dbc61a8db4ffff76fd2e00dd0da7904c 100644 (file)
@@ -29,6 +29,16 @@ class Config
      */
     public $access = true;
 
+    /**
+     * Redirect the browser to the cache URL.
+     * If disabled, the file is directly delivered.
+     *
+     * Helpful for debugging since it does not change the browser's URL.
+     *
+     * @var boolean
+     */
+    public $redirect = true;
+
     /**
      * How long requests with an old timestamp may be used.
      * 2 days default.