miniflare icon indicating copy to clipboard operation
miniflare copied to clipboard

Miniflare does not support RequestInit["cf"]["cacheEverything"]

Open faldonis opened this issue 2 years ago • 1 comments

The cf object is only partially implemented. Miniflare supports cacheKey, cacheTtl and cacheTtlByStatus, but not cacheEverything.

It would be great if this very useful option cached correctly!

faldonis avatar Apr 23 '22 13:04 faldonis

Hey! 👋 Thanks for the feature request. I'm pretty busy the next few weeks with exams, but will try add this soon. 👍

mrbbot avatar May 20 '22 21:05 mrbbot

Hey! 👋 Following up on this internally, it turns out the Workers Cache API only respects request.cf.cacheKey. This means Miniflare is incorrect in supporting cacheTtl and cacheTtlByStatus, and doesn't need to support cacheEverything. 👍

mrbbot avatar Sep 07 '22 17:09 mrbbot