Last-Modified: use ingress last update time

This commit is contained in:
Vincent Riquer 2014-06-11 16:25:43 +02:00
parent dca11a4019
commit 0d4770e290

5
graph
View File

@ -247,7 +247,10 @@ else
now=$(date +%s)
cat <<-EOHEAD
content-type: image/png
Last-Modified: $(LC_ALL=C TZ=GMT date +'%a, %d %b %Y %X %Z')
Last-Modified: $(
LC_ALL=C TZ=GMT date +'%a, %d %b %Y %X %Z' \
-d @$(rrdtool last ingress.rrd)
)
Expires: $(LC_ALL=C TZ=GMT date +'%a, %d %b %Y %X %Z' -d '1 hour')
Cache-Control: max-age=0, must-revalidate