mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 14:45:10 +00:00
Changing cache to 1 hour until we can figure out caching issue.
This commit is contained in:
parent
361cf995da
commit
9a9a0b9735
|
@ -26,7 +26,9 @@ use tokio::sync::Mutex;
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref CACHE_CONTROL_REGEX: Regex =
|
static ref CACHE_CONTROL_REGEX: Regex =
|
||||||
Regex::new("^((text|image)/.+|application/javascript)$").unwrap();
|
Regex::new("^((text|image)/.+|application/javascript)$").unwrap();
|
||||||
static ref CACHE_CONTROL_VALUE: String = format!("public, max-age={}", 365 * 24 * 60 * 60);
|
// static ref CACHE_CONTROL_VALUE: String = format!("public, max-age={}", 365 * 24 * 60 * 60);
|
||||||
|
// Test out 1 hour here, this is breaking some things
|
||||||
|
static ref CACHE_CONTROL_VALUE: String = format!("public, max-age={}", 60 * 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
embed_migrations!();
|
embed_migrations!();
|
||||||
|
|
Loading…
Reference in a new issue