Skip to content

Instantly share code, notes, and snippets.

@harssh-sparkway
Created March 6, 2014 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harssh-sparkway/9383440 to your computer and use it in GitHub Desktop.
Save harssh-sparkway/9383440 to your computer and use it in GitHub Desktop.
gzip on;
gzip_http_version 1.1;
gzip_disable "msie6";
gzip_vary on;
gzip_min_length 1100;
gzip_buffers 64 8k;
gzip_comp_level 3;
gzip_proxied any;
gzip_types text/plain text/css application/x-javascript text/xml application/xml;
add expiration headers
location ~* ^/assets/ { expires 1y; add_header Cache-Control public; add_header Last-Modified ""; add_header ETag ""; break; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment