Skip to content

Instantly share code, notes, and snippets.

@garystafford
Created August 7, 2016 11:42
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 garystafford/1084830c9e0ba63e62b620f6ff5e7a2b to your computer and use it in GitHub Desktop.
Save garystafford/1084830c9e0ba63e62b620f6ff5e7a2b to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name proxy;
location ~* \/assets\/(css|images|js|template)\/* {
root /usr/share/nginx/;
expires max;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
add_header Vary Accept-Encoding;
access_log off;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment