Index: bin/varnishd/rfc2616.c
===================================================================
--- bin/varnishd/rfc2616.c	(revision 1382)
+++ bin/varnishd/rfc2616.c	(working copy)
@@ -109,7 +109,8 @@
 	retirement_age = INT_MAX;
 
 	u1 = u2 = 0;
-	if (http_GetHdrField(hp, H_Cache_Control, "max-age", &p)) {
+	if (http_GetHdrField(hp, H_Cache_Control, "s-maxage", &p) ||
+	    http_GetHdrField(hp, H_Cache_Control, "max-age", &p)) {
 		u1 = strtoul(p, NULL, 0);
 		u2 = 0;
 		if (http_GetHdr(hp, H_Age, &p)) {
