perseus 0.4.2

A lightning-fast frontend web dev platform with full support for SSR and SSG.
Documentation
1
2
3
4
5
6
7
8
9
use http::header::{self, HeaderMap};

/// Creates the default headers used in Perseus. This is the default value for
/// `set_headers` on every `Template<G>`
pub(crate) fn default_headers() -> HeaderMap {
    let mut map = HeaderMap::new();
    map.insert(header::CACHE_CONTROL, "max-age=300".parse().unwrap());
    map
}