diff options
author | Dessalines <tyhou13@gmx.com> | 2020-06-03 12:11:40 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-06-03 12:11:40 -0400 |
commit | 9a9a0b9735d793b11a6bc95ab66a0066afb9aae7 (patch) | |
tree | e7e2a0aec4e78632b340f161346abf362dfa7778 | |
parent | 361cf995da168b3d6f12c9e540c40a2f7b9e8c6c (diff) |
Changing cache to 1 hour until we can figure out caching issue.
-rw-r--r-- | server/src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/main.rs b/server/src/main.rs index f894dc54..3f91965e 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -26,7 +26,9 @@ use tokio::sync::Mutex; lazy_static! { static ref CACHE_CONTROL_REGEX: Regex = 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!(); |