Skip to content

Commit

Permalink
fix: bring back tiles cache
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Mar 18, 2022
1 parent dd556f2 commit 5044028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-tauri/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub async fn get_service(request: Request<Body>) -> Result<Response<Body>> {
return Ok(
response
.header(CONTENT_TYPE, DataFormat::Pbf.content_type())
.header("Cache-Control", "no-cache")
// .header("Cache-Control", "no-cache")
.header("Access-Control-Allow-Origin", "*")
.body(Body::from(decode(data, data_in_format).unwrap()))
.unwrap(),
Expand All @@ -141,7 +141,7 @@ pub async fn get_service(request: Request<Body>) -> Result<Response<Body>> {
Ok(
response
.header(CONTENT_TYPE, DataFormat::new(data_format).content_type())
.header("Cache-Control", "no-cache")
// .header("Cache-Control", "no-cache")
.header("Access-Control-Allow-Origin", "*")
.body(Body::from(data))
.unwrap(),
Expand Down

0 comments on commit 5044028

Please sign in to comment.