Newsgroups: php.general,php.internals Path: news.php.net Xref: news.php.net php.general:325686 php.internals:95461 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98965 invoked from network); 27 Aug 2016 17:04:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Aug 2016 17:04:15 -0000 Authentication-Results: pb1.pair.com header.from=rene.veerman.netherlands@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rene.veerman.netherlands@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.179 as permitted sender) X-PHP-List-Original-Sender: rene.veerman.netherlands@gmail.com X-Host-Fingerprint: 209.85.220.179 mail-qk0-f179.google.com Received: from [209.85.220.179] ([209.85.220.179:34459] helo=mail-qk0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/71-34481-E08C1C75 for ; Sat, 27 Aug 2016 13:04:15 -0400 Received: by mail-qk0-f179.google.com with SMTP id t7so104257341qkh.1; Sat, 27 Aug 2016 10:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3jEmMUUsSSJ9GKuUKXNQVfQJFGBQ4/P0mD966tykF3Q=; b=jMvj9Crg4MIzlIS8c5kQhxQawOEVrMHDB50laaD61ZEx6PeJY3Rbs+iVZn7FvwYabY APPszNMkQLok17/UlXaf+8h+IuP4RmIL92cRTB9cWir2xp0t3Sd8qpwva88RtSRfY+HX sehhXjVYyiOc0MFa3wrnOXfZ7cU09YEv9acRJRXrDXh2hPQb1p6oM8ID93xNYlS/MFxc BUSUlFZu/Q+gZvPiG+h86kPQkUOJPphLxZGoqNx5+SVlxXRHL6sWTXGrg17SqTPGm/Ss CVpnF/a+rLtkM4WxGM0/WmXNEPkSNvzZkrjTKkymUGrO9metxFsKsMko18Pqi8gpBGGw /M1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3jEmMUUsSSJ9GKuUKXNQVfQJFGBQ4/P0mD966tykF3Q=; b=ba7mfRcV4xEDyviTGc+Yko9JP4qWb1mHRDrn+oJSqNz+wIYIQ1ZnuFV+eGzehP+Lkq Ti54anMXSdhXVk3IfU4dxD6GiEoLFpKuBKIxpNpeDHPbUM34+vHNpRyoWRmUJJM4gVeK w/DnFrgSHVyggX+u0AQcaTMf6fOwlir2BHk35LM3jXTrSgvjZIYnoaQbUCimEHn7B01x lsUncaN3rydvE22jIkZBSEOwTuqkAmy2MdStN4UgKDodOUyehVDYTbquvRNbvp5M5VyS KgZSxCBEhckkOezDhDvF3deODUvy8oMKrBEaaGm4v2mmBKLcp/+G5f1SsI9F11+Twp/E LseQ== X-Gm-Message-State: AE9vXwOuViujIDbXgksmyYU2iTl/IA4/Cvmw3uSi4rZ5xTKH4Y83D4PqxgOIHb2ujkEbFGJyezMPsa70BVx+ww== X-Received: by 10.55.116.7 with SMTP id p7mr10375239qkc.239.1472317451437; Sat, 27 Aug 2016 10:04:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.52.68 with HTTP; Sat, 27 Aug 2016 10:03:51 -0700 (PDT) In-Reply-To: <575004197.3237.1472317204593@localhost> References: <575004197.3237.1472317204593@localhost> Date: Sat, 27 Aug 2016 19:03:51 +0200 Message-ID: To: =?UTF-8?Q?Rouven_We=C3=9Fling?= Cc: php-general@lists.php.net, internals@lists.php.net Content-Type: multipart/alternative; boundary=001a1148733ab08e10053b109e41 Subject: Re: [PHP-DEV] feature request : gzip caching From: rene.veerman.netherlands@gmail.com (Rene Veerman) --001a1148733ab08e10053b109e41 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable i'm working on comprehensive caching (and true obfuscation) with PHP for HTML, CSS, JS and JSON.. it's nearly done, and i've always served my javascript as a concatenated file.. i have well over 20 different sourcefiles you know.. takes too long with the http overhead for them to be in seperate requests.. the obfuscator is opensourced and will stay free to use, at https://github.com/seductiveapps/webappObfuscator which i'll update with my latest sources in a few minutes.. i'm taking comments about the thing.. i'll start a seperate thread on php-general@lists.php.org about too within half an hour or so... On Sat, Aug 27, 2016 at 7:00 PM, Rouven We=C3=9Fling wrote: > If you're using Nginx, the gzip_static module (http://nginx.org/en/docs/ > http/ngx_http_gzip_static_module.html) is probably a better choice for > what you're trying to do. Except in exceptional circumstances you shouldn= 't > serve static assets through a PHP at all. > > > > > On 27 Aug 2016, at 18:55, Rene Veerman gmail.com> wrote: > > > > Hi.. > > > > First off, i love PHP. Many thanks for keeping it free too. > > > > 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)).. > > > > 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.. > > > > Could you pretty please add this to the core of PHP? Shouldn't be that > hard > > for the internals team right?.. > > > > Many thanks in advance for even considering to do this.. > > > > with regards, > > Rene Veerman, > > CEO + CTO of seductiveapps.com > --001a1148733ab08e10053b109e41--