One of the tips provided by both Google and Yahoo! to speed up the loading of web pages, you must configure cookieless subdomain on the static content of the server.
How do you configure "cookieless subdomain" using Tomcat offline (this question is not about how to use Apache for static content in a cookieless-way, but how to do it in Tomcat-standalone mode)?
Please note that I do not need filters that support If-Modified-Since , and do not care about filters that support gzipping: the static content that I serve is cached forever (or its name will change), and this is already compressed data (so gzip only slow down the transmission).
Do I need two different Tomcat webapps? (one cookiefull and one cookieless)
Do I need two different servlets? (at the moment I have only one dispatcher / servlet manager).
Why is a βregularβ link to, say, a static image called in a cookiefully way when it is in the same domain as the main webapp, and then called in cookie-less mode when it is on a subdomain?
I donβt exactly understand what is happening: a browser that decides to add or not cookies to the request? If so, why not add cookies to the static request in the cookieless subdomain.
Any example of what happens behind the scenes is welcome :)
source share