]> Untitled Git - lemmy.git/commitdiff
Changing cache to 1 hour until we can figure out caching issue.
authorDessalines <tyhou13@gmx.com>
Wed, 3 Jun 2020 16:11:40 +0000 (12:11 -0400)
committerDessalines <tyhou13@gmx.com>
Wed, 3 Jun 2020 16:11:40 +0000 (12:11 -0400)
server/src/main.rs

index f894dc5426663038fd71f3ac025f0a868dfd3a55..3f91965e10a84b252f8ce600edb1e6fd70ee61b4 100644 (file)
@@ -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!();