Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: [OT] Gzip compression of script files

vijay venkataraman

2007-08-14

Replies:

Sebastin,
Thanks for all the information and pointers. Hmm i didn't realize that
i meddled with another thread. Group i am very sorry for the mistake. I
just accomplished what i wanted, it was more of a bug that is why i
didn't get it to work.

I do understand that i can get it done this done at container / web
server config level or at the code level. Nice link if others are think
in these terms. http://www.seifi.org/?p=482

Thanks,
Vijay


Sebastian Kolbe wrote:
> Hello,
>
> First of all: You should open a new thread for new questions. Answering to
> existing threads might conceal your message for most people.
>
> Anyway:
> Compressing javascript, css and other files is possible if the browser
> supports this.
> The simplest solution for this is to install a webserver (i.e. apache)
> additional
> to your application server so that a request goes through the web
> server. This webserver
> can be configured to compress content, probably also HTML files or other
> content;
> look for 'mod_deflate'.
> If everything is right you should then have a transparent compression
> for selected
> filetypes w/o needing to compress anything "manually".
>
> An other approach is to use a javascript "compressor" like
> http://compressor.ebiene.de/ which converts/eliminates white spaces and
> word wrapping.
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.