Newsgroups: php.general,php.internals Path: news.php.net Xref: news.php.net php.general:325690 php.internals:95465 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17310 invoked from network); 27 Aug 2016 19:00:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Aug 2016 19:00:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=josh.kehn@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=josh.kehn@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.175 as permitted sender) X-PHP-List-Original-Sender: josh.kehn@gmail.com X-Host-Fingerprint: 209.85.161.175 mail-yw0-f175.google.com Received: from [209.85.161.175] ([209.85.161.175:33087] helo=mail-yw0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/35-34481-A63E1C75 for ; Sat, 27 Aug 2016 15:00:59 -0400 Received: by mail-yw0-f175.google.com with SMTP id r9so66329812ywg.0; Sat, 27 Aug 2016 12:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Jrs6NDpKr7ZH8CrMHU7+ri2TBpPkZnWsn56c7AG279s=; b=C3WNj67L3C2vNX2nc6IMg+5b3kih3EgMq5+qGWUa7FzNXeNCYw/mgE9ysFW8DKch9/ nFdJTwc/2+VdUAB8xwhwOxkR2d3amn3VV4ZXB8eZIt+RMbW2sllxa0ZneuDUcgnWIWsr MLcdTj2KJ/n9TpYROs6erS4ZxfyReiYamrTAIr1sxdKImCJqXKV9kKHAlCH8Yxx6qyXs rV25stnq+UIwk34DjnYJW+BQ/sEyxQ93y53uYrjIzivIdEjzHgs9WpZ7/VTrO3H768Hk KKEKQvJIOGUEzcxta8vCLOl5sKBCcBWF1OHowVi4nZTcKxuj9u4nuxGb1Qx2WXezqbLh XhnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Jrs6NDpKr7ZH8CrMHU7+ri2TBpPkZnWsn56c7AG279s=; b=f3elOHd+ydnID1YAke14WYUYTfiVTUOxVci6M7YLvJsiYeWDNkrlNK+PtkuS3S5yEZ GiAH+DHtjd+Lqwva3YfBQodDp9vXU0gyWbScfa5BzYlGUJ41zGZCGpyj00hyfJEOwMMi IdmZEdejw8VhlnVsminCVq/Z6dbPEL9wI1/qWt8+RuIk7hI7Lndw0KMRNDE6ycKKAO6z /1gvYMWGzRNJSElyFvTmq6yRV+9EisjgGl3YDo+NFWlsD6nQBPfc6GT1dzfXX9Yjda6s Wfoi2gxc+KHg8+dn41DGmsyqId3KypP/uGXmZIdTAhsouphX+qTQXmkIdhnZK4LnUsD8 IJWw== X-Gm-Message-State: AE9vXwNXwZgxx+ZnYwHLOs3oPDOgAwJ706oS5DeDavq9piWl8hj5vYdZaLl7maVcQg8Low== X-Received: by 10.129.82.75 with SMTP id g72mr8129478ywb.3.1472324455991; Sat, 27 Aug 2016 12:00:55 -0700 (PDT) Received: from [100.104.73.158] (189.sub-70-214-79.myvzw.com. [70.214.79.189]) by smtp.gmail.com with ESMTPSA id z193sm13118848ywg.26.2016.08.27.12.00.54 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 27 Aug 2016 12:00:54 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (13G36) In-Reply-To: Date: Sat, 27 Aug 2016 15:00:53 -0400 Cc: Ashley Sheridan , php-general@lists.php.net, internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <33E6F0A8-A14B-4590-A18C-FF6D6E029D0A@gmail.com> References: <5E615A59-AC2B-455F-9438-D295419F3767@ashleysheridan.co.uk> To: Rene Veerman Subject: Re: [PHP] feature request : gzip caching From: josh.kehn@gmail.com (Joshua Kehn) Why is PHP handling static file serving? This is squarely outside of it's do= main. Have nginx or something upstream handle gzipping content.=20 --jk > On Aug 27, 2016, at 1:22 PM, Rene Veerman wrote: >=20 > eh no, i'm a big fan of caching output in js / json cache files :) > but those still need to get gzipped... not just my main JS file, also my > photoalbum contents -> another 1Mb of JSON content... >=20 > On Sat, Aug 27, 2016 at 7:19 PM, Ashley Sheridan > wrote: >=20 >>=20 >>=20 >> On 27 August 2016 17:52:48 BST, Rene Veerman > gmail.com> wrote: >>> Hi.. >>>=20 >>> First off, i love PHP. Many thanks for keeping it free too. >>>=20 >>> However, i've noticed that gzipping the 1Mb of javascript that my >>> seductiveapps.com needs, takes a relatively long time (measured over a >>> total page load time which i'd like to bring down from it's current 10 >>> seconds, about a second or even more is spent gzipping (by a core i5 >>> machine)).. >>=20 >> Are you building the js each time it's requested? Have you thought about >> building it as a deployment step for production? >>=20 >>>=20 >>> At one time, i spent time building PHP code that cached the >>> already-gzipped >>> content and outputted that with just readfile().. But i never got it to >>> work a second time, unfortunately.. >> Why don't you want the web server to handle the gzip side of things? It >> would make more sense surely? >>=20 >>> Could you pretty please add this to the core of PHP? Shouldn't be that >>> hard >>> for the internals team right?.. >>>=20 >>> Many thanks in advance for even considering to do this.. >>>=20 >>> with regards, >>> Rene Veerman, >>> CEO + CTO of seductiveapps.com >>=20 >> -- >> Sent from my Android device with K-9 Mail. Please excuse my brevity. >>=20