Skip to content

Commit

Permalink
Caching.
Browse files Browse the repository at this point in the history
  • Loading branch information
lumenwrites committed Nov 16, 2017
1 parent 5db29d3 commit 3d54923
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions config/helix_nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -74,24 +74,24 @@ server {
tcp_nodelay on;

# Enable caching.
# location ~* \.(jpg|jpeg|png|gif|ico|css|js|otf|ttf|eot|woff|svg)$ {
# expires 10d;
# access_log off;
# ## Fancy extra config recommended by a guy
# add_header Vary Accept-Encoding;
# tcp_nodelay off;
# open_file_cache max=3000 inactive=120s;
# open_file_cache_valid 45s;
# open_file_cache_min_uses 2;
# open_file_cache_errors off;
location ~* \.(jpg|jpeg|png|gif|ico|css|js|otf|ttf|eot|woff|svg)$ {
expires 10d;
access_log off;
## Fancy extra config recommended by a guy
add_header Vary Accept-Encoding;
tcp_nodelay off;
open_file_cache max=3000 inactive=120s;
open_file_cache_valid 45s;
open_file_cache_min_uses 2;
open_file_cache_errors off;

# proxy_set_header Host $host;
# proxy_buffering off;
# add_header Pragma public;
# add_header Cache-Control "public";
proxy_set_header Host $host;
proxy_buffering off;
add_header Pragma public;
add_header Cache-Control "public";

# proxy_pass http://0.0.0.0:3020;
# }
proxy_pass http://0.0.0.0:3020;
}

location / {
proxy_pass http://0.0.0.0:3020;
Expand Down

0 comments on commit 3d54923

Please sign in to comment.