Return-Path: X-Original-To: apmail-tapestry-users-archive@www.apache.org Delivered-To: apmail-tapestry-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BB48A79F9 for ; Tue, 1 Nov 2011 14:06:24 +0000 (UTC) Received: (qmail 81963 invoked by uid 500); 1 Nov 2011 14:06:23 -0000 Delivered-To: apmail-tapestry-users-archive@tapestry.apache.org Received: (qmail 81929 invoked by uid 500); 1 Nov 2011 14:06:23 -0000 Mailing-List: contact users-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tapestry users" Delivered-To: mailing list users@tapestry.apache.org Received: (qmail 81921 invoked by uid 99); 1 Nov 2011 14:06:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 14:06:23 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hlship@gmail.com designates 209.85.210.180 as permitted sender) Received: from [209.85.210.180] (HELO mail-iy0-f180.google.com) (209.85.210.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 14:06:17 +0000 Received: by iaeh11 with SMTP id h11so221331iae.11 for ; Tue, 01 Nov 2011 07:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=55DNd4goVN0W4GEN5i11vV2UhnUR0KpndCvi0gNs1W4=; b=oFRINgOmDOfBheoVxdjKQmzi4wxUoJSy7lfTbD+9qEf2ZQsYIqSyjVxSxtTWVl/lIN IFHE5MvlOv4OncbP075lUnDogQ3R8gWF6ezKIpSlrygbTOFi+uf1IqaqPt8OBQjuH5jM N89frqltnHJr7sTyAbIemJ0Nz6jm1GRZ8XNI4= MIME-Version: 1.0 Received: by 10.42.161.69 with SMTP id s5mr2986595icx.23.1320156356583; Tue, 01 Nov 2011 07:05:56 -0700 (PDT) Received: by 10.50.180.196 with HTTP; Tue, 1 Nov 2011 07:05:56 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Nov 2011 07:05:56 -0700 Message-ID: Subject: Re: text/javascript not minimized and HTTP status 200 From: Howard Lewis Ship To: Tapestry users Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org We're finding that YUICompressor doesn't work inside Tomcat. Could this be the issue? On Tue, Nov 1, 2011 at 5:48 AM, pico.dev . wrote: > Hi! > > I've updated my app to Tapestry 5.3-rc-2 and I'm testing the > minification and production mode. I've included in my project the > tapestry-yuicompressor dependency and I've made contributions to the > ApplicationDefaults like this in my app module: > > public static void > contributeApplicationDefaults(MappedConfiguration > configuration) { > =A0 =A0 =A0 =A0configuration.add(SymbolConstants.PRODUCTION_MODE, "true")= ; > =A0 =A0 =A0 =A0configuration.add(SymbolConstants.COMPRESS_WHITESPACE, "tr= ue"); > =A0 =A0 =A0 =A0configuration.add(SymbolConstants.COMBINE_SCRIPTS, "true")= ; > =A0 =A0 =A0 =A0configuration.add(SymbolConstants.MINIFICATION_ENABLED, "t= rue"); > =A0 =A0 =A0 =A0configuration.add(SymbolConstants.COMPACT_JSON, "true"); > =A0 =A0 =A0 =A0... > } > > When I access to my application the text/css resources gets minimized > correctly but the text/javascript resources are returned like the > originals without any minimization. > > Also I noted that with PRODUCTION_MODE to "true" all text/css and > text/javascript assets are returned with HTTP status 200 code and the > transferred size of all resources of a request to my app is 290 KiB > according to Chrome Developer Tools. With PRODUCTION_MODE to "false" > the assets are returned with HTTP status 304 code and the transferred > size of all resources is 25 KiB. > > I'm missing something? Anyone with the same behavour? > > Cheers, > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org > For additional commands, e-mail: users-help@tapestry.apache.org > > --=20 Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org For additional commands, e-mail: users-help@tapestry.apache.org