Remove gzip specific locations in nginx config
-
As far as I know, nginx do not require to have specific locations to server gzipped files. When a client request a URI, if gzip is on, nginx just check the presence of
Accept-Encoding
and compress it before serving it if the mime type is compressible. That the reason of usingVary "Accept-Encoding"
in the response. The response may vary depending of which encoding the client accept.
Unless I missed something, I think you can remove all locations with the_gzip
suffix.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Remove gzip specific locations in nginx config’ is closed to new replies.