Skip to content

Instantly share code, notes, and snippets.

@Edarlingen
Created April 10, 2017 06:35
Show Gist options
  • Save Edarlingen/b1c8d6c487d66af80015271e14735d26 to your computer and use it in GitHub Desktop.
Save Edarlingen/b1c8d6c487d66af80015271e14735d26 to your computer and use it in GitHub Desktop.
nginx: if-modified-since
location @fallback {
proxy_pass http://127.0.0.1:8080;
proxy_redirect http://127.0.0.1:8080 /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header If-Modified-Since $http_if_modified_since;
access_log off ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment