httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: [users@httpd] Reducing js file sizes...
Date Fri, 20 Mar 2009 07:49:17 GMT
Brian Mearns wrote:
> On Thu, Mar 19, 2009 at 4:30 PM, Tony Anecito <adanecito@yahoo.com> wrote:
>> Hi All,
>>
>> Does anyone know of a module that would strip out the js file comments? Would be
a great thing to have.
>>
>> Thanks,
>> -Tony
>>
> 
> Not aware of a module specifically, but there are a number of programs
> with and without source code floating around that do this. The keyword
> you want to search for in "minify". I'm sure you could easily set up
> an external filter to use one of them, or simply use a cgi script to
> do it, and then your src can be included through that script, e.g.:
> <script type='text/javscript'
> src='/cgi-bin/minify.cgi?/url/to/myscript.js'></script>
> 
Would that not prevent browser-level caching of the javascript ?
If yes, that would probably more than cancel any advantage of the 
"minification", no ?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message