TrafeX / docker-php-nginx

Docker image with PHP-FPM 8.3 & Nginx 1.24 on Alpine Linux
https://hub.docker.com/r/trafex/php-nginx
MIT License
1.33k stars 721 forks source link

application/javascript mime type is missing in gzip_types #172

Closed chrisch297 closed 4 months ago

chrisch297 commented 4 months ago

I was wondering why some of my javascripts are not getting compressed and found that the application/javascript mime type is missing in gzip_types in the nginx.conf file. Can you add this type please?

TrafeX commented 4 months ago

Hi @chrisch297,

Thank you for the suggestion, I updates the mime types with CloudFlare's settings to gzip a lot more mimetypes; https://github.com/TrafeX/docker-php-nginx/blob/master/config/nginx.conf#L41