forked from indymedia/epicyon
More cache refinement
parent
79a1dab559
commit
5e5ebfb201
|
@ -114,9 +114,8 @@ And paste the following:
|
|||
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forward-Proto http;
|
||||
proxy_set_header X-Nginx-Proxy true;
|
||||
expires 7d;
|
||||
proxy_set_header Pragma public;
|
||||
proxy_set_header Cache-Control "public";
|
||||
expires epoch;
|
||||
proxy_no_cache 1;
|
||||
proxy_temp_file_write_size 64k;
|
||||
proxy_connect_timeout 10080s;
|
||||
proxy_send_timeout 10080;
|
||||
|
@ -129,6 +128,10 @@ And paste the following:
|
|||
proxy_buffering on;
|
||||
proxy_cache my_cache;
|
||||
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
|
||||
location ~ ^/(icons|images|media|emoji)/(.*)/(.*).png {
|
||||
expires 7d;
|
||||
proxy_pass http://localhost:7156;
|
||||
}
|
||||
location ~ ^/icons/(.*)/(like|repeat|calendar)(.*).png {
|
||||
expires epoch;
|
||||
proxy_no_cache 1;
|
||||
|
|
|
@ -1394,9 +1394,8 @@
|
|||
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;<br>
|
||||
proxy_set_header X-Forward-Proto http;<br>
|
||||
proxy_set_header X-Nginx-Proxy true;<br>
|
||||
expires 7d;<br>
|
||||
proxy_set_header Pragma public;<br>
|
||||
proxy_set_header Cache-Control "public";<br>
|
||||
expires epoch;<br>
|
||||
proxy_no_cache 1;<br>
|
||||
proxy_temp_file_write_size 64k;<br>
|
||||
proxy_connect_timeout 10080s;<br>
|
||||
proxy_send_timeout 10080;<br>
|
||||
|
@ -1409,6 +1408,10 @@
|
|||
proxy_buffering on;<br>
|
||||
proxy_cache my_cache;<br>
|
||||
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;<br>
|
||||
location ~ ^/(icons|images|media|emoji)/(.*)/(.*).png {<br>
|
||||
expires 7d;<br>
|
||||
proxy_pass http://localhost:7156;<br>
|
||||
}<br>
|
||||
location ~ ^/icons/(.*)/(like|repeat|calendar)(.*).png {<br>
|
||||
expires epoch;<br>
|
||||
proxy_no_cache 1;<br>
|
||||
|
|
Loading…
Reference in New Issue