mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-22 09:16:46 +00:00
new: Added cache-control header, fixes #22
This commit is contained in:
parent
0b50a7c261
commit
eab1c9bc73
@ -49,6 +49,7 @@ async fn main() -> Result<()> {
|
|||||||
.app_data(web::Data::new(AppState {
|
.app_data(web::Data::new(AppState {
|
||||||
db: database::open_db(db_location.clone()),
|
db: database::open_db(db_location.clone()),
|
||||||
}))
|
}))
|
||||||
|
.wrap(middleware::DefaultHeaders::new().add(("Cache-Control", "no-cache, private")))
|
||||||
.service(services::link_handler)
|
.service(services::link_handler)
|
||||||
.service(services::getall)
|
.service(services::getall)
|
||||||
.service(services::siteurl)
|
.service(services::siteurl)
|
||||||
|
Loading…
Reference in New Issue
Block a user