Skip to main content

RSC_CACHE_CONTROL

Constant RSC_CACHE_CONTROL 

Source
pub const RSC_CACHE_CONTROL: &str = "public, max-age=60, stale-while-revalidate=300";
Available on crate feature nextstatic only.
Expand description

RSC payload 的短缓存; 文件名不带 hash, 发版后最多 max-age + stale-while-revalidate 内可能拿到旧 payload