This not necessary a Laravel question, but all of my static files (img|js|css) and so on, are only caching for 4 hours. I tried to increase that but with no luck.
I added this block to nginx config:
and reload the nginx. My image path is /public/images/***.png, so the regex should capture it. However, that's not happening, when I curl to get the image the max-age is set to 14400 which is still 4 hours.
Not sure what is happening there.
I just tested that config and it works fine for setting the expiration.
Are you maybe routing your site through something like CloudFlare which could either be caching the expires header from before you set it or setting its own expires headers in the settings?