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