0%

Book Description

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

In Detail

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

  1. Instant Varnish Cache How-to
    1. Instant Varnish Cache How-to
    2. Credits
    3. About the Author
    4. About the Reviewer
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why subscribe?
        2. Free access for Packt account holders
    6. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Errata
        2. Piracy
        3. Questions
    7. 1. Instant Varnish Cache How-to
      1. Installing Varnish Cache (Must know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      2. Varnish Cache server daemon options (Must know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Connecting to backend servers (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      4. Load balance requests (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      5. The Varnish Configuration Language (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      6. Handling HTTP request vcl_recv (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
      7. Handling HTTP request vcl_hash (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
      8. Handling HTTP request vcl_pipe and vcl_pass (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
      9. Handling HTTP response vcl_fetch (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
      10. Handling HTTP response vcl_deliver (Should know)
        1. Getting ready
        2. How to do it...
      11. Handling HTTP response vcl_error (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
      12. Caching static content (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
      13. Cookies, sessions, and authorization (Become an expert)
        1. Getting ready
        2. How to do it...
        3. How it works...
      14. HTTP cache headers (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
      15. Invalidating cached content (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
      16. Compressing the response (Become an expert)
        1. Getting ready
        2. How to do it...
        3. How it works...
      17. Monitoring the hit ratio (Become an expert)
        1. Getting ready
        2. How to do it...
        3. How it works...
52.14.1.136