Does Minimum edge cache TTL also effect cache api?


#1

does the Minimum edge cache TTL apply to all scenarios including worker cache api and\or custom max-age headers?

does setting max-age:60 will make the url to cached for only 1 minute or the minimum, or in that case the max-age will be changes based on the ttl minimum value?

and does this will work from worker?

response = await fetch(event.request, {
      cf: {
        cacheTtl: 1
      }
    });
    event.waitUntil(cache.put(event.request, response.clone()))
  }

#2

well after playing with it(its only work in production but not in testing) its indeed working, I hope its legal to use lower values than the plan allows me


#3

The limit of worker is v8 times your imagination. cache control in workers is “legal”