From f057a43a3f673d5ec816f62fe9803cdf5f8f2ba0 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Sun, 1 Jun 2014 16:45:33 +0200 Subject: [PATCH] Longer caching --- graph | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/graph b/graph index f17c343..3fd98dc 100755 --- a/graph +++ b/graph @@ -48,15 +48,16 @@ then esac done <<<"${query_data//=/ }" fi +(( start >= end)) && (( end = start + 604800 )) 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 '10 minutes') + Expires: $(LC_ALL=C TZ=GMT date +'%a, %d %b %Y %X %Z' -d '1 day') refresh: 600 - Cache-Control: max-age=3600, must-revalidate + Cache-Control: max-age=86400, must-revalidate