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 ]]