diff --git a/src/lib.rs b/src/lib.rs index f20d690..4fd012f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -81,7 +81,8 @@ async fn default_route(_req: Request, url: Url) -> MyResult { ResponseInit::new() .status(200) .headers(headers!{ - "Content-Type" => "text/html" + "Content-Type" => "text/html", + "Cache-Control" => "no-cache" }.as_ref()) ).internal_err(); } diff --git a/src/sn.rs b/src/sn.rs index 219cd91..50f9717 100644 --- a/src/sn.rs +++ b/src/sn.rs @@ -79,7 +79,8 @@ async fn get_actions(_req: Request, url: Url) -> MyResult { ResponseInit::new() .status(200) .headers(headers!{ - "Content-Type" => "application/json" + "Content-Type" => "application/json", + "Cache-Control" => "no-cache" }.add_cors().as_ref()) ).internal_err() }