mirror of
https://github.com/simonw/datasette.git
synced 2026-09-19 06:54:20 +02:00
Protect personalized dynamic responses from shared caching
This commit is contained in:
parent
7e6039b8df
commit
ceef351622
4 changed files with 55 additions and 7 deletions
|
|
@ -256,6 +256,8 @@ Default HTTP caching max-age header in seconds, used for ``Cache-Control: max-ag
|
|||
|
||||
datasette mydatabase.db --setting default_cache_ttl 60
|
||||
|
||||
Dynamic responses for authenticated actors, requests with cookies or an ``Authorization`` header, and responses that set cookies use ``Cache-Control: private, no-store``. This takes precedence over ``default_cache_ttl`` and ``?_ttl=``, even when cache headers are otherwise disabled. Anonymous dynamic responses vary by ``Cookie`` and ``Authorization``. Static assets retain their own cache policy.
|
||||
|
||||
.. _setting_cache_size_kb:
|
||||
|
||||
cache_size_kb
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue