Skip to content

Instantly share code, notes, and snippets.

@evemilano
Created December 30, 2016 23:24
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 evemilano/93ab33973323e4147ca465ad3884f38b to your computer and use it in GitHub Desktop.
Save evemilano/93ab33973323e4147ca465ad3884f38b to your computer and use it in GitHub Desktop.
Browser Caching NGINX sites-available
. . .
# Default server configuration
#
# Expires map
map $sent_http_content_type $expires {
default off;
text/html epoch;
text/css max;
application/javascript max;
~image/ max;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
expires $expires;
. . .
@evemilano
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment