[Jifty-commit] jifty branch, jifty_client, updated. c7fdebfc812abdaa80ecf9b751ab2b2590decb5e

Jifty commits jifty-commit at lists.jifty.org
Sun May 2 11:12:55 EDT 2010


The branch, jifty_client has been updated
       via  c7fdebfc812abdaa80ecf9b751ab2b2590decb5e (commit)
      from  ac607702063340812b5503db599e7cc7148e98c2 (commit)

Summary of changes:
 lib/Jifty/Handler.pm |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit c7fdebfc812abdaa80ecf9b751ab2b2590decb5e
Author: Chia-liang Kao <clkao at clkao.org>
Date:   Sun May 2 23:13:01 2010 +0800

    Don't send caching headers for static handler in devel mode.

diff --git a/lib/Jifty/Handler.pm b/lib/Jifty/Handler.pm
index 75e6703..3c08597 100644
--- a/lib/Jifty/Handler.pm
+++ b/lib/Jifty/Handler.pm
@@ -149,6 +149,8 @@ sub psgi_app_static {
 
     # the buffering and unsetting of psgi.streaming is to vivify the
     # responded res from the $static cascade app.
+    return $static if Jifty->config->framework('DevelMode');
+
     builder {
         enable 'Plack::Middleware::ConditionalGET';
         enable

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list