Closed Jhonfunk closed 8 months ago
What's your cloudflare cache setting?
cf default setting . Is there any way to get rid of it ?
I think you've got the wrong culprit. Almost every http response contains Date header.
So What's your cloudflare default cache setting?Do you change it to respect existing headers
?
In general, html will not be cached.
You'd better disable Brotli
compression. I have some problems with it.
You'd better disable
Brotli
compression. I have some problems with it.
@freedit-dev
Do you mean disable Brotli
on cloudflare or disable Brotli
on freedit?
@Jhonfunk cloudflare
The axum framework automatically adds a
date
field to every http response.I have tested and found that the
date
field in the Response headers could cause the cloudflare cache duration judgment to be abnormal, resulting in frequent cache loss or expiration.I'm not familiar with axum framework, after 3 hours of efforts did not find the relevant code.