Hit-for-Miss AND why a NULL TTL is bad for you

Varnish is a caching server, and a great one at that, that much we already know. But what about the content you don't want to cache? For example, those shopping cart requests and other completely uncacheable API calls?

We can of course handle it, but we've got to be wary of the sirens of the cargo cult because you will often see something like this on the internet:

sub vcl_backend_response {
# check if the backend response header named
# "cache-control" contains the word "private"
if (beresp.http.cache-control ~ "private") {
# if so, don't cache by limiting the Time-To-Live
# period to 0 second
set beresp.ttl = 0s;
}
}

This is both pretty intuitive, and also very wrong. In this post, we'll explore why it's a bad idea, how to do better, and along the way, we'll try to shine some light on a couple of lesser known features of Varnish.

Read More

10/15/20 4:12 PM
by Guillaume Quintard

Delivering consistent, secure web performance for public sector organizations

 

Public sector websites and apps may not get a lot of love because, for the most part, they are taken for granted by those who use and need them the most. These sites deliver the foundations of what societies and their populations need. Whether it’s garbage collection information, applying for unemployment payment benefits, or getting real-time information on a health crisis or natural disaster, governmental organizations bear numerous responsibilities and the public’s trust. 

 

Read More

10/13/20 12:05 PM
by Jonatan Lindgren

Amazon Prime Day 2020: Readying e-commerce infrastructure

Ahead of this year’s Amazon Prime Day, moved this year to October 13 and 14, 2020, and other major online shopping days, such as Singles Day and the Cyber Five weekend in late November, it’s worth examining both e-commerce best practices for big shopping periods and how much e-commerce has changed since last year.

 

Read More

10/7/20 11:39 AM
by Miles Weaver

Monetizing a 5G setup: Varnish Edge Cloud

Varnish Software is working at the epicenter of a digital revolution, supporting businesses in solving some of the most complex and constantly evolving challenges they face. In this case, specifically, 5G. 

 

Read More

9/30/20 2:00 PM
by James Whyte

 -  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