-
-
Notifications
You must be signed in to change notification settings - Fork 703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.db downloads should be served with an ETag #1739
Comments
Here's how Starlette does it: https://github.com/encode/starlette/blob/830f3486537916bae6b46948ff922adc14a22b7c/starlette/staticfiles.py#L213 |
Reminded myself how this works by reviewing Simply add a |
Database downloads are served here: datasette/datasette/views/database.py Lines 186 to 192 in d60f163
Here's datasette/datasette/utils/asgi.py Lines 410 to 430 in d60f163
I can add an |
Relevant tests start here: Line 395 in d60f163
|
That prototype is now public: https://github.com/simonw/datasette-lite |
I noticed that my Pyodide Datasette prototype is downloading the same database file every single time rather than browser caching it:
The text was updated successfully, but these errors were encountered: