1f951217

By: Michael Lynch <git@mtlynch.io>

Cache embedded static assets for 30 minutes

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.

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 1s 1s 1s
Eval 1s 33s 33s 34s
Build 2s 2m35s 1m10s 1m13s
Test - - - -
Deploy - - - -
Suite 0s 3m10s 1m13s 1m13s

Timeline

0s10s20s30s40s50s1m1m10s