Wednesday, November 25, 2009

Summary




[ Team LiB ]









Summary


Client-side web site optimization can take you only so far. To fully optimize high-traffic pages, you've got to turn to the server-side. By configuring your server to accommodate conditional SSI and browser sniffing, abbreviated URLs, and shunting defaults to the server, you can dramatically speed up your pages. Here is a list of key points in this chapter:



  • Use SSI to minimize HTTP requests on high-traffic pages.


  • Where possible, pre-merge dynamic content without SSI for maximum speed.


  • Use server-side browser sniffing to minimize HTTP requests, especially for JavaScript files. Use the fastest technology available (JSP > PHP > XSSI).


  • Conditionally include meta tags.


  • Abbreviate your links, manually or automatically, with mod_rewrite and shorturls.pl (20 to 28 percent savings).


  • Optimize your forms and CGI scripts to shunt defaults to the server.


  • Use mod_perl to speed up Perl scripts.


  • Don't require www. for your domains.




Further Reading


For more information on the Apache server, modules, URL rewrites, and other server-side tuning topics, see the following:



  • Apache.org�The Apache server home page. The place for the most up-to-date information and documentation at http://www.apache.org.


  • "Apache Performance Notes" by Dean Gaudet on tuning the Apache server for speed (applies more to version 1.3) at http://httpd.apache.org/docs-2.0/misc/perf-tuning.html.


  • Apache Server 2.0: The Complete Reference by Ryan Bloom (Osborne McGraw-Hill, 2002)�The first book on Apache 2.0 by one of the developers.


  • "Extreme HTML Optimization" by Andy King (2000)�Radical reductions with no-holds-barred techniques, including URL rewriting, at http://www.webreference.com/authoring/languages/html/optimize/.


  • "URLS! URLS! URLS!" by Bill Humphries (2000)�An article on URL rewriting at http://www.alistapart.com/stories/urls/.


  • Web Performance Tuning, 2nd ed. by Patrick Killelea (O'Reilly, 2002)� Has numerous server-side tuning tips. More at http://www.patrick.net/.










    [ Team LiB ]



    No comments: