From 0d4770e2902688eebd61279542e579a5cf9a048a Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Wed, 11 Jun 2014 16:25:43 +0200 Subject: [PATCH] Last-Modified: use ingress last update time --- graph | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/graph b/graph index 311e4e0..20da785 100755 --- a/graph +++ b/graph @@ -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