new: Added cache-control header, fixes #22
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user