1. #1
    Ext User wilfredor's Avatar
    Join Date
    Jul 2009
    Location
    Venezuela
    Posts
    26
    Vote Rating
    0
    wilfredor is on a distinguished road

      0  

    Question 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

  2. #2
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    try jawr.

  3. #3
    Ext User wilfredor's Avatar
    Join Date
    Jul 2009
    Location
    Venezuela
    Posts
    26
    Vote Rating
    0
    wilfredor is on a distinguished road

      0  

    Default


    Thanks, but I can not use something extra
    Att. Wilfredo Rodríguez
    http://wilfredor.blogspot.com

  4. #4
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    you can't drop external java libraries into tomcat to be used by hosted applications?

  5. #5
    Ext User wilfredor's Avatar
    Join Date
    Jul 2009
    Location
    Venezuela
    Posts
    26
    Vote Rating
    0
    wilfredor is on a distinguished road

      0  

    Default


    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

  6. #6
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    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.

  7. #7
    Ext User wilfredor's Avatar
    Join Date
    Jul 2009
    Location
    Venezuela
    Posts
    26
    Vote Rating
    0
    wilfredor is on a distinguished road

      0  

    Default


    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

  8. #8
    Sencha User nlotz's Avatar
    Join Date
    Dec 2007
    Location
    Hamburg, Germany
    Posts
    88
    Vote Rating
    0
    nlotz is on a distinguished road

      0  

    Default


    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) {
                }
            }
        }

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi