static assets caching

This commit is contained in:
realaravinth
2021-05-04 23:27:58 +05:30
parent 98719670df
commit f0254b3b77
5 changed files with 23 additions and 21 deletions

View File

@@ -61,9 +61,10 @@ pub static VERSION: &str = env!("CARGO_PKG_VERSION");
pub static PKG_NAME: &str = env!("CARGO_PKG_NAME");
pub static PKG_DESCRIPTION: &str = env!("CARGO_PKG_DESCRIPTION");
pub static PKG_HOMEPAGE: &str = env!("CARGO_PKG_HOMEPAGE");
pub static VERIFICATION_PATH: &str = "mcaptchaVerificationChallenge.json";
pub const CACHE_AGE: u32 = 365 * 24 * 3600;
#[cfg(not(tarpaulin_include))]
#[actix_web::main]
async fn main() -> std::io::Result<()> {