1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-25 23:28:37 -06:00

new: Added cache-control header, fixes #22

This commit is contained in:
Sayantan Santra 2024-05-31 01:24:33 -05:00
parent 0b50a7c261
commit eab1c9bc73
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -49,6 +49,7 @@ async fn main() -> Result<()> {
.app_data(web::Data::new(AppState {
db: database::open_db(db_location.clone()),
}))
.wrap(middleware::DefaultHeaders::new().add(("Cache-Control", "no-cache, private")))
.service(services::link_handler)
.service(services::getall)
.service(services::siteurl)