Skip to main content

fetch_with_cache

Function fetch_with_cache 

Source
pub fn fetch_with_cache(
    ecosystem: &str,
    name: &str,
    url: &str,
    max_age: Duration,
) -> Result<(Vec<u8>, bool), String>
Expand description

Fetch URL with cache support using conditional requests. Returns (data, was_cached) tuple.