O'Reilly logo

ASP.NET Site Performance Secrets by Matt Perdeck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Serving images from cookieless subdomains

When you set a cookie on the browser, all subsequent requests from the browser carry that cookie, including requests for static content, such as images and CSS and JavaScript files. This is magnified by the fact that many visitors will have an asymmetric Internet connection, where the upload connection from browser to server is slower than the download connection from server to browser. If the upload connection is a quarter of the speed of the download connection, a 1000-byte cookie takes as long to transfer as a 4000-byte file.

Because the browser sends cookies only to the domain that actually set it, you can get rid of the cookie overhead by serving static content from a separate subdomain. This makes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required