0e7b256d

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Cache embedded static assets for 30 minutes (#42)

Add Cache-Control and ETag headers to embedded static asset responses so
browsers can keep assets fresh for 30 minutes and revalidate efficiently
with 304 Not Modified responses after that.

This keeps the change localized to the static file handler instead of
threading asset versioning through templates and routes.

Reviewed-on: https://codeberg.org/mtlynch/little-moments/pulls/42
Co-authored-by: Michael Lynch <git@mtlynch.io>
Co-committed-by: Michael Lynch <git@mtlynch.io>

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 1s 1s 2s
Eval 2s 28s 28s 30s
Build 4s 38s 13s 18s
Test - - - -
Deploy - - - -
Suite 0s 1m08s 30s 30s

Timeline

0s10s20s30s