mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Updated documentation to remove hash_urls, refs #1661
This commit is contained in:
parent
9979dcd07f
commit
32963018e7
3 changed files with 11 additions and 38 deletions
|
|
@ -178,17 +178,6 @@ Default HTTP caching max-age header in seconds, used for ``Cache-Control: max-ag
|
|||
|
||||
datasette mydatabase.db --setting default_cache_ttl 60
|
||||
|
||||
.. _setting_default_cache_ttl_hashed:
|
||||
|
||||
default_cache_ttl_hashed
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Default HTTP caching max-age for responses served using using the :ref:`hashed-urls mechanism <setting_hash_urls>`. Defaults to 365 days (31536000 seconds).
|
||||
|
||||
::
|
||||
|
||||
datasette mydatabase.db --setting default_cache_ttl_hashed 10000
|
||||
|
||||
.. _setting_cache_size_kb:
|
||||
|
||||
cache_size_kb
|
||||
|
|
@ -251,22 +240,6 @@ HTTP but is served to the outside world via a proxy that enables HTTPS.
|
|||
|
||||
datasette mydatabase.db --setting force_https_urls 1
|
||||
|
||||
.. _setting_hash_urls:
|
||||
|
||||
hash_urls
|
||||
~~~~~~~~~
|
||||
|
||||
When enabled, this setting causes Datasette to append a content hash of the
|
||||
database file to the URL path for every table and query within that database.
|
||||
|
||||
When combined with far-future expire headers this ensures that queries can be
|
||||
cached forever, safe in the knowledge that any modifications to the database
|
||||
itself will result in new, uncached URL paths.
|
||||
|
||||
::
|
||||
|
||||
datasette mydatabase.db --setting hash_urls 1
|
||||
|
||||
.. _setting_template_debug:
|
||||
|
||||
template_debug
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue