Hands-on recipes to improve your website's load speed and overall user experience with Varnish
- Learn something new in an Instant! A short, fast, focused guide delivering immediate results.
- Connect and health-check application servers with Varnish Cache
- Load balance requests across clustered servers
- Define caching policies and request/response workflow
When you're doing business on the Web, every second counts. 80 percent of the end user response time is spent on downloading content to the browser, and Varnish Cache is here to help you solve this problem in a simple and effective way.
"Varnish Cache How-to" is a practical, hands-on guide that will take you from beginner to advanced, improving your website speed and dropping the bounce and page abandonment rates of your website. With easy-to-follow recipes, this book will help you take advantage of caching your application server’s response to avoid a duplicated workload.
This book will take you from the installation of the Varnish Cache server to defining caching policies, the normalization of static content, and a final production-ready fast and scalable cache server.
You will learn to balance requests across servers based on input data or pre-defined settings, create persisted sessions (sticky sessions), compress static content, and modify requests. If you want to improve the speed and also provide a fail-over mechanism to achieve a fast and available website, then this book is for you.
By the end of this book, you’ll learn how to scale and improve the user‘s experience by providing a fast and available website.
Table of Contents
Instant Varnish Cache How-to
- Instant Varnish Cache How-to
- About the Author
- About the Reviewer
1. Instant Varnish Cache How-to
- Installing Varnish Cache (Must know)
- Varnish Cache server daemon options (Must know)
- Connecting to backend servers (Should know)
- Load balance requests (Should know)
- The Varnish Configuration Language (Should know)
- Handling HTTP request vcl_recv (Should know)
- Handling HTTP request vcl_hash (Should know)
- Handling HTTP request vcl_pipe and vcl_pass (Should know)
- Handling HTTP response vcl_fetch (Should know)
- Handling HTTP response vcl_deliver (Should know)
- Handling HTTP response vcl_error (Should know)
- Caching static content (Should know)
- Cookies, sessions, and authorization (Become an expert)
- HTTP cache headers (Should know)
- Invalidating cached content (Should know)
- Compressing the response (Become an expert)
- Monitoring the hit ratio (Become an expert)
- Title: Instant Varnish Cache How-to
- Release date: January 2013
- Publisher(s): Packt Publishing
- ISBN: 9781782160403