Books & Videos

Table of Contents

  1. Chapter 1 What Is Varnish Cache?

    1. Why Does Web Performance Matter?

    2. Where Does Varnish Fit In?

    3. The Varnish Cache Open Source Project

    4. How Does Varnish Work?

    5. Caching Is Not a Trick

    6. Conclusion

  2. Chapter 2 Go, Go, Go and Get Started!

    1. Installing Varnish

    2. Configuring Varnish

    3. What About TLS/SSL?

    4. Conclusion

  3. Chapter 3 Varnish Speaks HTTP

    1. Idempotence

    2. State

    3. Expiration

    4. Conditional Requests

    5. Cache Variations

    6. Varnish Built-In VCL Behavior

    7. Conclusion

  4. Chapter 4 The Varnish Configuration Language

    1. Hooks and Subroutines

    2. Return Statements

    3. The execution flow

    4. VCL Syntax

    5. Backends and Health Probes

    6. Access Control Lists

    7. VCL Variables

    8. Varnish’s Built-In VCL

    9. A Real-World VCL File

    10. Conclusion

  5. Chapter 5 Invalidating the Cache

    1. Caching for Too Long

    2. Purging

    3. Banning

    4. Banning from the Command Line

    5. Forcing a Cache Miss

    6. Cache Invalidation Is Hard

    7. Conclusion

  6. Chapter 6 Dealing with Backends

    1. Backend Selection

    2. Backend Health

    3. Directors

    4. Grace Mode

    5. Conclusion

  7. Chapter 7 Improving Your Hit Rate

    1. Common Mistakes

    2. Do You Really Want to Cache Static Assets?

    3. URL Blacklists and Whitelists

    4. Decide What Gets Cached with Cache-Control Headers

    5. There Will Always Be Cookies

    6. Sanitizing

    7. Hit/Miss Marker

    8. Caching Blocks

    9. An All-in-One Code Example

    10. Conclusion

  8. Chapter 8 Logging, Measuring, and Debugging

    1. Varnishstat

    2. Varnishlog

    3. Varnishtop

    4. Conclusion

  9. Chapter 9 What Does This Mean for Your Business?

    1. To CDN or Not to CDN

    2. VCL Is Cheaper

    3. Varnish as a Building Block

    4. The Original Customer Case

    5. Varnish Plus

    6. Companies Using Varnish Today

    7. Conclusion

  10. Chapter 10 Taking It to the Next Level

    1. What About RESTful Services?

    2. Extending Varnish’s Behavior with VMODs

    3. Need Help?

    4. The Future of the Varnish Project