Hey there! I'm trying to use the cache api, but running into issues. I have the follow minimal rep

Hey there!

I'm trying to use the cache api, but running into issues. I have the follow minimal repro. When I ping this worker, I never get a "Cache hit" response. Any idea what might be going on here? I'm using the exact same key for every request.
async fn main(req: Request, env: Env, ctx: Context) -> Result<Response> {
    let cache = Cache::default();
    
    let path = "http://www.google.com";
    let response: Option<Response> = cache.get(path.clone(), false).await?;
    console_log!("here!");
    match response {
        Some(response) => {
            let mut resp: Response = Response::ok("Cache hit")?; 
            Ok(resp)
        }, 
        None => {
            console_log!("{}", path);
            let mut resp = Response::ok("Cache miss")?; 
            Ok(resp)
        }
    }
}
Was this page helpful?