Use rrd file update time for html page too

This commit is contained in:
Vincent Riquer 2014-06-11 16:30:14 +02:00
parent 4484f591b1
commit 2879dfd059

9
graph
View File

@ -145,10 +145,13 @@ if [ -z "$graph" ]
then
cat <<-EOHTML
content-type: application/xhtml+xml
Last-Modified: $(LC_ALL=C TZ=GMT date +'%a, %d %b %Y %X %Z')
Expires: $(LC_ALL=C TZ=GMT date +'%a, %d %b %Y %X %Z' -d '1 day')
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
refresh: 600
Cache-Control: max-age=86400, must-revalidate
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"