Force a different edge cache TTL on html-edge-cache worker

I’ve been using the html-edge-cache worker on a WordPress site with the appropriate plugin. Everything is working great but I’d like to force a different edge cache TTL when the page is cached by the worker. Currently it honors the origin’s cache-control header, which for reasons unrelated to this question, I cannot change. So, I’d like to force a higher TTL directly from the worker and avoid cache rules.

I know I can specify an edge cache TTL with a Worker using cf: { cacheTtl: value }, but I’m not where in the Worker’s code I should specify that.

Any help would be greatly appreciated! Thank you!!

1 Like

Having the same issue my side and would love some sample code or some help too