From 957a67e3d918b24f3e231c6ae66ea6bda404aad1 Mon Sep 17 00:00:00 2001 From: "Eric J. Korpela" Date: Tue, 20 Jul 2004 21:54:18 +0000 Subject: [PATCH] Caching now supports If-Modified-Since request header. svn path=/trunk/boinc/; revision=3912 --- html/inc/cache.inc | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/html/inc/cache.inc b/html/inc/cache.inc index a60377f21f..64dc263d50 100644 --- a/html/inc/cache.inc +++ b/html/inc/cache.inc @@ -14,8 +14,25 @@ function get_path($params) { function start_cache($max_age, $params=""){ $path = get_path($params); + $request = getallheaders(); + // Check to see if this is a conditional fetch. + $lastmodified = @filemtime($path); - if (@filemtime($path)