Skip to main content

asset_headers

Function asset_headers 

Source
pub fn asset_headers() -> String
Expand description

#1883, slice 1b: the _headers file written into a Worker’s assets directory beside its files. Every served path carries its content hash, so a file under bynk_check::assets::SERVED_PREFIX never changes and may be cached for a year. Without it the platform’s default is max-age=0, must-revalidate. The glob is built from the prefix, so the two cannot drift (review of #1904).