Skip to content

Commit

Permalink
refactor: enable cache headers by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Blooym committed Mar 26, 2024
1 parent 46115fd commit d8fab65
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@ struct AppOptions {
///
/// If one of the `cache-*` crate features are enabled the request will already be cached server-side for that requested duration,
/// so sending the `Cache-Control` header to the client is favourable behaviour as it can sometimes lighten server load.
// https://stackoverflow.com/questions/77771008/
#[arg(
long = "use-received-cache-headers",
env = "AIGIS_USE_RECEIVED_CACHE_HEADERS"
env = "AIGIS_USE_RECEIVED_CACHE_HEADERS",
default_value_t = true
)]
use_received_cache_headers: bool,
use_received_cache_headers: std::primitive::bool,

/// The maximum Content-Length that can be proxied by this server.
#[arg(
Expand Down

0 comments on commit d8fab65

Please sign in to comment.