Developers - Varnish Software

Developers <3 Varnish

Documentation

Technical documentation digging into the nitty-gritty of Varnish® solutions.

 

TOP 3 TOPICS

Let’s Encrypt with Hitch and Varnish

Securing multi-tier Varnish environments

Client SSL/TLS termination

Varnish documentation

Wiki

The best community-driven Varnish® resources available, helping you do everything from getting started to solving a specific issue.

 

TOP 3 TOPICS

WordPress with Varnish

Adobe Experience Manager and Varnish

Varnish Web Developer FAQs

Varnish developer wiki

Blog

The latest how-tos, innovative Varnish® use cases, FAQs, news and other informative topics in blog form from the Varnish team.

 

TOP 3 BLOG POSTS

10 Varnish mistakes and how to avoid them

Step-by-step: Speed up WordPress with Varnish software

Varnish and Docker: First contact

Varnish Software blog

Release notes

When things are moving, we’ll let you know!

Show all releases

Varnish Software manuals

Varnish Software™ manuals dig into the technical information and changelogs of the major Varnish® features. Here are just a few of the most popular.

Varnish Plus Cloud

Technical documentation digging into the nitty-gritty of Varnish® solutions.

 

GET STARTED

Amazon Web Services

Google Cloud Platform

Microsoft Azure

Documentation

Varnish High Availability

A high-performance content replicator for Varnish® that ensures maximum uptime and performance.

Documentation

Varnish Cache Plus

A powerful caching engine that enables fast, resilient, high-performance content delivery under any load, at any scale.

Documentation

Protect yourself against threats and vulnerabilities

New security issues appear all the time with increasing levels of sophistication. Varnish® is built with security-by-design at its heart to ensure secure end-to-end content delivery and protection against security exploits.

noun_228832

Varnish HTTPS support

SSL/TLS (HTTPS) encryption is, by now, a requirement for security, privacy and even SEO. With Varnish®, you can protect your client-side and backend.

noun_228823

Varnish Total Encryption

Varnish Total Encryption™ neutralizes entire classes of security vulnerabilities and risks, and securely encrypts all cached data using dual key AES 256 encryption.

noun_228850

Varnish WAF

The Varnish® Web Application Firewall (WAF) lets you inspect your HTTP traffic and detect malicious requests at the edge before they reach your web application.

Under the hood

Showing and telling are two different things.
What does Varnish look like in action?


Vmod-cookieplus

This VCL snippet strips all the cookies that should not be kept.

We want to keep certain cookies if the req.url matches a specific condition, otherwise we will just remove all the other cookie headers.


Pre-fetch with vmod-http

Here we use a combination of vmod_kvstore (key value storage) and vmod_http (external requests).

Using these together we can prefetch content in a live streaming scenario and pace the background fetches triggered by vmod_http.

We use a “counter” function to make sure a single URL per second can trigger a prefetch request. This is to avoid overwhelming our backends. Without that counter we would push 10,000 prefetch requests to the backend.


Vmod-JSON

For each incoming request we buffer the request body and try to parse it, assuming it is in JSON format.

If it is in JSON format, we extrapolate the value associated to the key “authorization”.
This is a good way to run a check on your request bodies and extend your authorization control.


Vmod-rewrite

Vmod-rewrite does Apache-style rewrite rules. It aims to reduce the amount of VCL to be written when many rewrites or manipulations need to be applied to URLs or headers.

A path to a file containing the rules must be specified and these will be applied at run time to every incoming request.

Does it work with…

Compatibility is key. Varnish is architecture-agnostic, caching virtually any kind of content and supporting the world’s most-used web technologies. Read up on a few of the most common CMSes, e-commerce platforms, CDNs and others that Varnish supports:

Get in touch if you have questions about all the rest.

The Varnish Book

The Varnish Book™ is really the comprehensive, nitty-gritty technical document for all things Varnish.

Solutions

Get up to speed with Varnish Software. Learn more about optimizing API and web performance and content delivery.

 

Varnish Solutions

Support

If you need help resolving a Varnish issue or setting things up, our support team is available to help.

 

Get in touch with support

Talk to an expert

Varnish experts are on hand to answer your technical questions and help you find the solution you need.

 

Contact us

Request a free trial