This document provides an overview of factors that affect website performance and techniques for improving performance through caching. It discusses how browser requests work and what HTTP headers can indicate about caching. It also outlines different caching options like browser caching, network caching using proxies and CDNs, and server-side caching using Memcache, Varnish, and opcode caches. Specific techniques for Drupal sites are also mentioned like caching views, entities and blocks. Performance monitoring and testing tools are listed at the end.
4. BROWSER REQUEST
1. User: requests apage from the browser
2. Network: DNS finds the server and sends request
3. Server: responds to the page request, generates page.
4. Network: the page is returned.
5. Browser: Renders the page, pulls the files (requests) together
5. HTTP HEADERS
Headers are sentto and from the server with the request.
Tellpoints alongthe path of the requestif cache can be used.
9. BE WARY OF CACHING:
form, postdata
logged in users
User specific content/blocks etc.
Dynamic content
HTTPS SSL
10. GOOGLE HTTPS EVERYWHERE
Google is encouragingthe use of https byincreasingranking
HTTPS as arankingsignal
http://youtu.be/cBhZ6S0PFCY
possible rewrite of cachingrules
No supportfor SSL in varnish
15. APC
PHP is converted to opcode (computer readable) on the fly
APC stores files as opcode in memoryfor reuse
Significantimprovement
PHP 5.4?has it's own opcode cache