markusahlstrand / cloudworker-proxy

An api gateway for cloudflare workers
MIT License
194 stars 22 forks source link

Added cache handler #69

Closed markusahlstrand closed 4 years ago

markusahlstrand commented 4 years ago

This PR makes is possible to add a cache middleware that either caches the requests in cloudflare according to the cache-headers returned from the origin or by overriding the cache duration in the config.