]> gitweb.ps.run Git - ps-cgit/commitdiff
cache: document negative ttls and add about ttl
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 28 May 2013 14:33:30 +0000 (16:33 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 12 Aug 2013 19:14:10 +0000 (13:14 -0600)
We've long supported negative ttls, for infinite cache, except the
documentation incorrectly showed one of our defaults as being 5 and not
-1. As well, with a negative ttl, we were actually making the HTTP
expired header go backwards. This changes it to go ahead ten years
instead.

Further, we add an cache-about-ttl option to set a different ttl for
about pages, which are now increasingly being filtered through markdown
or just sent statically anyway.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>

No differences found