kotx / render

Cloudflare Worker to proxy and cache requests to R2
MIT License
384 stars 85 forks source link

cache.put always fired #7

Closed bl-kl2 closed 2 years ago

bl-kl2 commented 2 years ago

Hi, thanks for sharing this great tool. I've a question: is there a specific reason for having cache.put fired also when the response is already in cache (previous cache.match)?

Thanks!

kotx commented 2 years ago

Hi, thanks for the report! I don't think there is a reason, I'll fix it now.

kotx commented 2 years ago

Fixed by 9f97dfcc37dc95d6a758660e0b625ba0ee3f95ab. Thanks!