Skip to content

Instantly share code, notes, and snippets.

@SunDi3yansyah
Created February 7, 2021 07:10
Show Gist options
  • Save SunDi3yansyah/45cfee8a86949197a07a433f1ed08810 to your computer and use it in GitHub Desktop.
Save SunDi3yansyah/45cfee8a86949197a07a433f1ed08810 to your computer and use it in GitHub Desktop.
Serving Static Content

Serving Static Content

location ~ \.(jpg|jpeg|gif|png|css|js|ico|xml|txt|gz)$ {
  expires 30d;
  log_not_found off;
  access_log off;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment