added .htaccess for json files
box@home root committed
Jul 6, 2013 at 06:25 UTC
0dc88e9a3c0608ed7b1df8432cf2517c217e8f28
1 file changed
+11
netdata.start
+11
@@ -36,6 +36,17 @@ then
36
exit 1
37
fi
38
39
+cat <<EOFHTACCESS >"${data}/.htaccess"
40
+
41
+ExpiresActive on
42
+ExpiresDefault A0
43
+ExpiresByType application/json A0
44
+
45
+Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
46
+Header set Pragma "no-cache"
47
+
48
+EOFHTACCESS
49
+
50
echo "Stopping a (possibly) running netdata..."
51
killall netdata 2>/dev/null
52