Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X-FastAPI-Cache header not available in fastapi-cache2 v0.2.1 #281

Open
amrityamrout opened this issue Aug 22, 2023 · 8 comments
Open

X-FastAPI-Cache header not available in fastapi-cache2 v0.2.1 #281

amrityamrout opened this issue Aug 22, 2023 · 8 comments

Comments

@amrityamrout
Copy link

amrityamrout commented Aug 22, 2023

X-FastAPI-Cache header is not available in fastapi-cache2 v0.2.1
The latest release v0.2.1 was from February while the source code has been modified in main branch since.
https://pypi.org/project/fastapi-cache2/#history
915f3dd

@mrisher
Copy link

mrisher commented Dec 5, 2023

Hi: It looks like this is still the case, that Pypi doesn't have the May 17 version, which includes updates here. Is there a way to schedule a deployment please? Thanks much!

@arseniiarsenii
Copy link

Is still an issue as of Jan 2024. I hope @long2ice can help with this

@mrisher
Copy link

mrisher commented Jan 16, 2024 via email

@arseniiarsenii
Copy link

@mrisher thanks for the response. In the meantime, can you point me to any other way to know, if a request was a cache hit or miss? I need it in my logging middleware, so that I don't log cached responses multiple times as it produces high load. Thanks

@mrisher
Copy link

mrisher commented Jan 16, 2024 via email

@arseniiarsenii
Copy link

@mrisher I'm not sure, how you get these headers to appear in the response. For me, these are the only headers that I get in my responses:

 cache-control: max-age=30 
 content-length: 784 
 content-type: application/json 
 date: Tue,16 Jan 2024 10:58:22 GMT 
 etag: W/-6181376353854741601 
 server: uvicorn 

@mrisher
Copy link

mrisher commented Jan 16, 2024 via email

@rliessum
Copy link

Ran also into this, will try to work out a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants