Java Mailing List Archive

http://www.junlu.com/

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

[OT] Gzip compression of script files

vijay venkataraman

2007-08-14

Replies:

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: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

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