Adding expiration and other headers, in traefik or apache?

I have this in my non-docker/traefik apache conf

ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/x-icon A2592000
Header always set Strict-Transport-Security "max-age=15552000"

I'm now in the process of dockerizing the site.
I'm using a standard apache/php image, i'm then adding the website to from git.

Can traefik add these headers, or must I replace the 000-default.conf in the image?

Hello @leifnel

Thank you for using Traefik.

The headers can be modified by using the headers middleware.

However, as Traefik is Proxy those headers based on MIME types should be configured on the backend level.

Thank you,