From 648dfe8cdcc00d573af8f5ef0fb1ab0b69128ce6 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Sun, 1 Feb 2015 23:49:51 +0100 Subject: [PATCH] 304: take "settings" mtime into account --- lib/send_headers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/send_headers b/lib/send_headers index e092b71..d55c80a 100644 --- a/lib/send_headers +++ b/lib/send_headers @@ -2,7 +2,7 @@ send_headers() { local timestamp do_exit header thisdate expiredate - read timestamp < <(stat -c %Y $0 "$rrdfile" lib/* |sort -r) + read timestamp < <(stat -c %Y $0 settings "$rrdfile" lib/* |sort -r) thisdate=$(LC_ALL=C TZ=GMT date +'%a, %d %b %Y %X %Z' -d @$timestamp) expiredate=$(LC_ALL=C TZ=GMT date +'%a, %d %b %Y %X %Z' -d '+1 minute') if [[ $thisdate == $HTTP_IF_MODIFIED_SINCE ]]