304: take "settings" mtime into account
This commit is contained in:
parent
522f29e6d7
commit
648dfe8cdc
@ -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 ]]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user