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.

-- 
Sebastian

Vijay Venkataraman schrieb:
> Hi,
> I have javascript/css files and looking at GZipping them and sending
> it to the browser. I am aware that i can do a GZip compression during
> runtime using a filters, by writing the content to GZipOutputStream. I
> am just wondering if it is possible to GZip these files during build
> time and then simply serve them during a request(run time) from the
> filter. I haven't seen any such example. Possibly i am missing some
> thing.
>
> Can anyone let me know, if it is achievable? If not why? Any pointers
> would be great.
>
> Cheers,
> Vijay.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to