-
21 Apr 2010 6:47 AM #1
Tomcat pre-compress static EXTJS
Tomcat pre-compress static EXTJS
I am thinking about having gzipped ExtJS, but only once, ie it is always compressed on the server. Someone has done?
I wonder how in Tomcat, thanks
Att. Wilfredo Rodríguez
http://wilfredor.blogspot.com
-
21 Apr 2010 9:35 AM #2
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
21 Apr 2010 9:47 AM #3
Thanks, but I can not use something extra
Att. Wilfredo Rodríguez
http://wilfredor.blogspot.com
-
21 Apr 2010 9:49 AM #4
you can't drop external java libraries into tomcat to be used by hosted applications?
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
21 Apr 2010 10:01 AM #5
I can not remove or add new libraries or new software. I have only permission to configure the existing, I'm sorry
Att. Wilfredo Rodríguez
http://wilfredor.blogspot.com
-
21 Apr 2010 10:12 AM #6
just turn on gzip compression?
http://viralpatel.net/blogs/2008/11/...in-tomcat.html
note:
the library i recommended (i.e. jawr) does minification as well.
tomcat already has gzip capabilities built-in.
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
21 Apr 2010 11:52 AM #7
I need a pre-compresed extjs js files and not a re-compreseed http request. I need do it that only once.
Att. Wilfredo Rodríguez
http://wilfredor.blogspot.com
-
22 Apr 2010 12:53 AM #8
Minifying in Java (JSMin by Douglas Crockford):
http://inconspicuous.org/projects/jsmin/jsmin.java
Gzipping in Java:
Code:public static void gzip(File src, File dest) throws IOException { gzip(new FileInputStream(src), new FileOutputStream(dest)); } public static void gzip(InputStream src, OutputStream dest) throws IOException { GZIPOutputStream out = null; try { int read; byte[] b = new byte[64 * 1024]; out = new GZIPOutputStream(dest); while (0 <= (read = src.read(b, 0, b.length))) out.write(b, 0, read); } finally { try { if (src != null) src.close(); } catch (Exception ignored) { } try { if (out != null) out.close(); } catch (Exception ignored) { } } }



Reply With Quote