Skip to main content

Module assets

Module assets 

Source
Expand description

Static assets are served under a path carrying the build id, so a deploy changes every asset URL and browsers never reuse a stale one.

Constants§

BUILD_ID

Functions§

static_files
Serves dir at /static/<build id>/ and, for pages cached before a deploy, at the bare /static/.
with_cache_policy
Versioned assets are cached for good; every other response, pages included, must be revalidated.