?_ttl= parameter and default_cache_ttl config

Refs #285, Closes #289
This commit is contained in:
Simon Willison 2018-05-26 15:17:33 -07:00
commit b463f60158
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
5 changed files with 39 additions and 1 deletions

View file

@ -164,6 +164,10 @@ The Datasette table view takes a number of special querystring arguments:
long, for example if you want to implement autocomplete search but only if
it can be executed in less than 10ms.
``?_ttl=SECONDS``
For how many seconds should this response be cached by HTTP proxies? Use
``?_ttl=0`` to disable HTTP caching entirely for this request.
``?_next=TOKEN``
Pagination by continuation token - pass the token that was returned in the
``"next"`` property by the previous page.