Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1967C1083C for ; Tue, 24 Sep 2013 06:58:02 +0000 (UTC) Received: (qmail 28125 invoked by uid 500); 24 Sep 2013 06:58:00 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 28097 invoked by uid 500); 24 Sep 2013 06:58:00 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 28084 invoked by uid 99); 24 Sep 2013 06:58:00 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Sep 2013 06:58:00 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id EC3441C17AC; Tue, 24 Sep 2013 06:57:59 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4867787241547987100==" MIME-Version: 1.0 Subject: Re: Review Request 12228: static resource compression From: "Laszlo Hornyak" To: "Prasanna Santhanam" , "Brian Federle" Cc: "Laszlo Hornyak" , "cloudstack" Date: Tue, 24 Sep 2013 06:57:59 -0000 Message-ID: <20130924065759.1617.16533@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Laszlo Hornyak" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/12228/ X-Sender: "Laszlo Hornyak" References: <20130924065121.1617.49195@reviews.apache.org> In-Reply-To: <20130924065121.1617.49195@reviews.apache.org> Reply-To: "Laszlo Hornyak" --===============4867787241547987100== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/12228/ ----------------------------------------------------------- (Updated Sept. 24, 2013, 6:57 a.m.) Review request for cloudstack, Brian Federle and Prasanna Santhanam. Repository: cloudstack-git Description (updated) ------- CloudStack at first use downloads some 3.5 MB of css and javascript to the client. With a weak internet connection, this might take a long time. With gzip compression content can be compressed to 850 KB. This version of the patch uses a custom plugin to compress static resources, so that no dynamic compression is needed at runtime. When the static resource servlet notices that there is gzipped version of the resource and the client accepts gzipped content, then it is going to send the gziped version, while still respects http caching. Diffs ----- client/WEB-INF/web.xml e5c05d3 client/pom.xml 119c96e server/src/com/cloud/servlet/StaticResourceServlet.java PRE-CREATION server/test/com/cloud/servlet/StaticResourceServletTest.java PRE-CREATION Diff: https://reviews.apache.org/r/12228/diff/ Testing ------- Thanks, Laszlo Hornyak --===============4867787241547987100==--