I’m using R2 to serve public CSV files. I’ve noticed that the cache time for these files is extremely short (<2-3 minutes) despite the max-age header showing 14400 seconds.
Any way to increase cache time via the dashboard/settings?
I’m using R2 to serve public CSV files. I’ve noticed that the cache time for these files is extremely short (<2-3 minutes) despite the max-age header showing 14400 seconds.
The date header is just about the HTTP request and not about the cache: Date - HTTP | MDN.
The cf-cache-status
header will show that cache status.
Yes, my first HTTP request shows that the item was in the cache (HIT), but my second request two minutes later shows the item was deleted from the cache (MISS).
The only real way to have it in cache more is having it requested more. Cache is dependent on the POP, and cache can be evicted quickly. If you want a higher hit rate then there is the paid add on of Cache Reserve
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.