mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
/dbname-hash now optional: turn on with --config hash_urls:1
This commit is contained in:
parent
9743e1d91b
commit
1ad3ebf2ed
13 changed files with 79 additions and 51 deletions
|
|
@ -179,3 +179,17 @@ HTTP but is served to the outside world via a proxy that enables HTTPS.
|
|||
::
|
||||
|
||||
datasette mydatabase.db --config force_https_urls:1
|
||||
|
||||
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, uncachcacheed URL paths.
|
||||
|
||||
::
|
||||
|
||||
datasette mydatabase.db --config hash_urls:1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue