Hi Isomorphic,
in http://forums.smartclient.com/showthread.php?t=28437 I set up ISC_FileLoader and served the (compressed) JS files in advance while displaying the login screen.
Preloading the core SC files saves a lot traffic that would otherwise be necessary after the successful login.
So I looked in Firebug whats still coming in for the 1st call of the real application, seeing that about 98% come from the DS loader.
I also have a ServletLogin, coming from your tip at https://isomorphic.atlassian.net/wik...mcat+JDBCRealm.
When I look in the server log for COMPRESSION entries I can see that answers for calls to IDACall are compressed. Calls to my LoginServlet as well as DataSourceLoader are not.
I then looked at http://www.smartclient.com/docs/9.0/...p..compression, section "Compressible mime types and compatibility". It says there that only certain MIME-types are compressed, the rest is ignored by the CompressionFilter. So I changed the MIME-type of my LoginServlet via "response.setContentType("text/xml");". Afterwards the answer of my Servlet is compressed.
Now I'm pretty sure that the CompressionFilter gets the result of DataSourceLoader but ignores it because of its MIME-type.
I did not find a way to tell Tomcat to change the MIME-type of the Servlet afterwards and think that only the servlet can define its contents type.
If that is true, is there a way that you either could change the MIME-type of the servlet (currently application/json;charset=UTF-8) or that one can configure which MIME-types CompressionFilter should compress?
Thanks,
Blama
in http://forums.smartclient.com/showthread.php?t=28437 I set up ISC_FileLoader and served the (compressed) JS files in advance while displaying the login screen.
Preloading the core SC files saves a lot traffic that would otherwise be necessary after the successful login.
So I looked in Firebug whats still coming in for the 1st call of the real application, seeing that about 98% come from the DS loader.
I also have a ServletLogin, coming from your tip at https://isomorphic.atlassian.net/wik...mcat+JDBCRealm.
When I look in the server log for COMPRESSION entries I can see that answers for calls to IDACall are compressed. Calls to my LoginServlet as well as DataSourceLoader are not.
I then looked at http://www.smartclient.com/docs/9.0/...p..compression, section "Compressible mime types and compatibility". It says there that only certain MIME-types are compressed, the rest is ignored by the CompressionFilter. So I changed the MIME-type of my LoginServlet via "response.setContentType("text/xml");". Afterwards the answer of my Servlet is compressed.
Now I'm pretty sure that the CompressionFilter gets the result of DataSourceLoader but ignores it because of its MIME-type.
I did not find a way to tell Tomcat to change the MIME-type of the Servlet afterwards and think that only the servlet can define its contents type.
If that is true, is there a way that you either could change the MIME-type of the servlet (currently application/json;charset=UTF-8) or that one can configure which MIME-types CompressionFilter should compress?
Thanks,
Blama
Comment