Page Rule or Worker?

I am trying to work out the best way to do this, take any png served from my site, set cache lifetime, and send headers for cache-control and expires. Screenshot is from another service we use, not sure it would help.

Is this possible in Page Rules or should I be looking to add a worker to handle it?

I’d go with a Page Rule to match *.png and add Browser Cache TTL and Edge Cache TTL.

1 Like

Thanks - I’ll start there, I think that’s the direction I wanted to go with it.

1 Like

This topic was automatically closed after 31 days. New replies are no longer allowed.