304: take "settings" mtime into account

This commit is contained in:
Vincent Riquer 2015-02-01 23:49:51 +01:00
parent 522f29e6d7
commit 648dfe8cdc

View File

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