diff options
Diffstat (limited to 'pingora-proxy/src')
-rw-r--r-- | pingora-proxy/src/proxy_cache.rs | 6 | ||||
-rw-r--r-- | pingora-proxy/src/proxy_trait.rs | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/pingora-proxy/src/proxy_cache.rs b/pingora-proxy/src/proxy_cache.rs index 00b61da..1611f59 100644 --- a/pingora-proxy/src/proxy_cache.rs +++ b/pingora-proxy/src/proxy_cache.rs @@ -116,11 +116,7 @@ impl<SV> HttpProxy<SV> { // (this is a soft purge which tries to revalidate, // vs. hard purge which forces miss) // TODO: allow hard purge - match self - .inner - .cache_hit_filter(&meta, ctx, session.req_header()) - .await - { + match self.inner.cache_hit_filter(session, &meta, ctx).await { Err(e) => { error!( "Failed to filter cache hit: {e}, {}", diff --git a/pingora-proxy/src/proxy_trait.rs b/pingora-proxy/src/proxy_trait.rs index adeddd8..307280c 100644 --- a/pingora-proxy/src/proxy_trait.rs +++ b/pingora-proxy/src/proxy_trait.rs @@ -109,9 +109,9 @@ pub trait ProxyHttp { // flex purge, other filtering, returns whether asset is should be force expired or not async fn cache_hit_filter( &self, + _session: &Session, _meta: &CacheMeta, _ctx: &mut Self::CTX, - _req: &RequestHeader, ) -> Result<bool> where Self::CTX: Send + Sync, |