add some no-cache headers
parent
cd8f761fcf
commit
fe22944cb4
|
@ -81,7 +81,8 @@ async fn default_route(_req: Request, url: Url) -> MyResult<Response> {
|
|||
ResponseInit::new()
|
||||
.status(200)
|
||||
.headers(headers!{
|
||||
"Content-Type" => "text/html"
|
||||
"Content-Type" => "text/html",
|
||||
"Cache-Control" => "no-cache"
|
||||
}.as_ref())
|
||||
).internal_err();
|
||||
}
|
||||
|
|
|
@ -79,7 +79,8 @@ async fn get_actions(_req: Request, url: Url) -> MyResult<Response> {
|
|||
ResponseInit::new()
|
||||
.status(200)
|
||||
.headers(headers!{
|
||||
"Content-Type" => "application/json"
|
||||
"Content-Type" => "application/json",
|
||||
"Cache-Control" => "no-cache"
|
||||
}.add_cors().as_ref())
|
||||
).internal_err()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue