potree-auth 0.1.0

Authentication and project management for `potree` point clouds.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use http::HeaderValue;
use tower_http::set_header::SetResponseHeaderLayer;

/// Sets a cache-control response header indicating that responses should not be
/// cached anywhere.
pub fn set_cache_control() -> SetResponseHeaderLayer<HeaderValue> {
    SetResponseHeaderLayer::overriding(
        http::header::CACHE_CONTROL,
        HeaderValue::from_static("no-store"),
    )
}