Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Re: 'pushing' vs direct array assignment ? Date: Tue, 4 Jun 2013 16:02:07 -0600 Lines: 37 Message-ID: References: <7dc473f5-c0e8-415b-92e1-f6201220fe9d@j8g2000yqa.googlegroups.com> X-Trace: individual.net XuOlOqMyJMMVj43hK+FBXAwXfg9AEUuEjjjtcLEhs9m14e6H3G Cancel-Lock: sha1:5rpYHeJZTD3JhW/gLxW7VvYzF/4= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original Xref: csiph.com comp.lang.javascript:20146 Stefan said: \> Something I've never understood about mod_deflate: why is there no way > to cache deflated static files? If you have a large script that you want > mod_deflate to compress before sending, it will do so for every single > fresh request. Granted, gzipping a script file is not likely to make a > major impact on a server, but it's still a waste of resources. > > Other HTTP servers do have a cache like that (for example, mod_compress > in Lighttpd). > > It's not a deal breaker; I still use mod_deflate. I just dislike the > needless waste of cycles when it would be so simple to add a cache > (memory or disk based). Hi Stefan: Because I have approx 67 different 'Big' files available to send out to clients, and they are based on data that is usually not changing 'much' over the course of a year, I have decided to save a copy of the pre-built big files *when* they are first requested. Then, the next time I have a request for one of the 67 (or so) big files, I've already got it built, and I simply read it in and then pass it to Apache for transmission to the client. Also, if I have occasion over the course of the year to update the 'big' file, then I manually delete the saved file, and my cgi app notices the missing file, rebuilds a new one, saves it, then sends the newly updated file to the client. I save about 1/4 of a second doing this :))) -Mel