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@xxxxxxxxxxxxx about too within half an hour or so... On Sat, Aug 27, 2016 at 7:00 PM, Rouven Weßling <rouven.wessling@xxxxxxxxxxx > 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 <rene.veerman.netherlands@ > 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 >