mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-30 09:30:00 -07:00
global: convert brk_vecs to its own crates and repo (seqdb/vecdb) + changes
This commit is contained in:
@@ -9,8 +9,8 @@ use axum::{
|
||||
};
|
||||
use brk_error::{Error, Result};
|
||||
use brk_interface::{Format, Output, Params};
|
||||
use brk_vecs::Stamp;
|
||||
use quick_cache::sync::GuardResult;
|
||||
use vecdb::Stamp;
|
||||
|
||||
use crate::{HeaderMapExtended, ResponseExtended};
|
||||
|
||||
@@ -112,6 +112,7 @@ fn req_to_response_res(
|
||||
headers.insert_cors();
|
||||
|
||||
headers.insert_etag(&etag);
|
||||
headers.insert_cache_control_must_revalidate();
|
||||
|
||||
match format {
|
||||
Some(format) => {
|
||||
|
||||
@@ -59,7 +59,7 @@ impl HeaderMapExtended for HeaderMap {
|
||||
fn insert_cache_control_must_revalidate(&mut self) {
|
||||
self.insert(
|
||||
header::CACHE_CONTROL,
|
||||
"public, max-age=0, must-revalidate".parse().unwrap(),
|
||||
"public, max-age=1, must-revalidate".parse().unwrap(),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user