switchgear-service 0.1.13

Service layer and API implementations for Switchgear LNURL load balancer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use axum::http::{header, HeaderMap, HeaderValue};

pub fn no_cache_headers() -> HeaderMap {
    HeaderMap::from_iter(vec![
        (
            header::CACHE_CONTROL,
            HeaderValue::from_static("no-store, no-cache, must-revalidate"),
        ),
        (
            header::EXPIRES,
            HeaderValue::from_static("Thu, 01 Jan 1970 00:00:00 GMT"),
        ),
        (header::PRAGMA, HeaderValue::from_static("no-cache")),
    ])
}