Guillaume Quintard

Recent Posts

Sticky session with cookies: not as dirty as it sounds

UPDATE: mss noted on Github that I manipulted the Set-Cookie header as if it were the Cookie header, which is wrong. This article has been corrected accordingly.

You may have read Dridi's blog post about cookies, and realized that he abhors them. So, in a playful attempt to piss him off, I decided to write Yet Another Post™ about cookies!

I know, I'm a terrible colleague, but, you, dear reader will benefit from this terribleness (I hope), as this article aims to explain in detail how we can use cookies to provide sticky sessions through Varnish. So, let's jump in the fire!

Read More

3/21/17 12:30 PM
by Guillaume Quintard

Systematic content validation with Varnish

"Can Varnish go to the backend and check the content freshness. FOR.EVERY.SINGLE.REQUEST?"

Read More

2/8/17 11:30 AM
by Guillaume Quintard

VMOD tutorial: vmod-str

If I were to ask you what is so great about Varnish, you'd probably answer: "the VCL, duh!". And you would be right, but maybe not for the same reason I'm loving it: the Varnish Configuration Language shifts the traditional declarative mindset of configuration to an imperative state.

It gives you great control, allowing you to actually write your policies, but beyond this, it means that plugins (or VMODs) are super easy to write. Because the VCL is imperative, plugins don't have to register themselves, care about hooks, or worry about execution order, making them a library that you can write in a matter of minutes.

And that's what we are going to explain here, step by step. A moderate knowledge of C and usual development tools (git, autotools, etc.) is expected, but nothing crazy, don't worry.

Read More

1/17/17 1:30 PM
by Guillaume Quintard

Put your URLs up, and keep'em where I can see'em: HTTP redirection

In the first part of this blog series, we saw how to rewrite URLs to seamlessly redirect people to where the content actually is. Today we are going to see how Varnish can help you do the same thing NOT seamlessly, using one of the built-in facilities of HTTP.

Read More

12/20/16 3:49 PM
by Guillaume Quintard

 -  All posts  - 

Varnish Software Blog

The Varnish blog is where our team writes about all things related to Varnish Cache and Varnish Software...or simply vents.

 

 
 

Posts by Topic

see all
 

SUBSCRIBE TO OUR BLOG