How to set seperate Edge Cache TTL and Browser Cache TTL at request level using Cloudflare Worker?

How to set seperate Edge Cache TTL (1 month) and Browser Cache TTL(4h) at request level using Cloudflare Worker?
This this example, it mentions s-maxage=10, I guess it refers to Edge Cache TTL. If I set Cache Control Header to public,maxage=14400,s-maxage=2592000, will it work as I expect?
Some posts say if s-maxage and maxage appears at the same time, maxage will be ignored.
Thank you!