Enable mod_expires in alpine php image . This can included in wordpress docker image to configure Expire Headers Using expires headers for wordpress: https://www.tipsandtricks-hq.com/wordpress-far-future-expiration-plugin-5980