Longer caching
This commit is contained in:
parent
d4a4ad4bc5
commit
f057a43a3f
5
graph
5
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
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user