Skip to content

Commit

Permalink
nginx: add gzip_vary to recommended settings
Browse files Browse the repository at this point in the history
Google PageSpeed recommends turning this on to allow proxies to cache
  • Loading branch information
wmertens committed Jul 17, 2017
1 parent 42cdad0 commit 15eb492
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/web-servers/nginx/default.nix
Expand Up @@ -65,6 +65,7 @@ let
gzip_proxied any;
gzip_comp_level 9;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
gzip_vary on;
''}
${optionalString (cfg.recommendedProxySettings) ''
Expand Down

0 comments on commit 15eb492

Please sign in to comment.