s
March 17, 2024, 7:25 p.m. |

Simon Willison's Weblog simonwillison.net

Add ETag header for static responses


I've been procrastinating on adding better caching headers for static assets (JavaScript and CSS) served by Datasette for several years, because I've been wanting to implement the perfect solution that sets far-future cache headers on every asset and ensures the URLs change when they are updated.


Agustin Bacigalup just submitted the best kind of pull request: he observed that adding ETag support for static assets would side-step the complexity while adding much of the …

cache caching change css datasette datasettecloud every future javascript responses solution urls webperformance

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Global Data Architect, AVP - State Street Global Advisors

@ State Street | Boston, Massachusetts

Data Engineer

@ NTT DATA | Pune, MH, IN