diff --git a/backend/src/main.rs b/backend/src/main.rs index 315056d..20bd518 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -80,10 +80,6 @@ fn redirect( LOCATION, T::redirect_url(&data.user, &data.repo, &head, &data.file).as_str(), ) - .set(CacheControl(vec![ - CacheDirective::Public, - CacheDirective::MaxAge(0), - ])) .finish() })); } diff --git a/backend/src/service.rs b/backend/src/service.rs index fac8330..4f1e924 100644 --- a/backend/src/service.rs +++ b/backend/src/service.rs @@ -4,10 +4,7 @@ use crate::{ statics::{load_env_var, GITHUB_AUTH_QUERY, OPT}, }; use actix_web::{ - http::{ - header::{CacheControl, CacheDirective, LOCATION}, - StatusCode, - }, + http::{header::LOCATION, StatusCode}, web, Error, HttpResponse, }; use awc::{error::PayloadError, Client, ClientResponse}; @@ -271,10 +268,6 @@ impl Service for GitLab { ) .as_str(), ) - .set(CacheControl(vec![ - CacheDirective::Public, - CacheDirective::MaxAge(0), - ])) .finish() }) .from_err(),