I want to enable gzip for all files in a server block except for one specific file (track.php) which will have a lot of POST requests. What is most performant of the two following? # ALTERNATIVE 1: location ~ ^/(?!track.php) { gzip on; gzip_types text/plain text/xml ; } # ALTERNATIVE 2: gzip on; gzip_types text/plain text/xml ; location = /track.php) { gzip off; } I assumeby axelsjo - How to...
![]() |
![]() |
![]() |
![]() |
|