Authored by jimi

open pagecache

... ... @@ -21,10 +21,10 @@ server {
root /Data/node/yohobuywap-node/current/yohobuywap-node/public/static;
}
# location ~ /purge(/.*) {
# allow all;
# proxy_cache_purge cache_one_activity $host$uri;
# }
location ~ /purge(/.*) {
allow all;
proxy_cache_purge cache_one_activity $host$uri;
}
location / {
... ... @@ -37,10 +37,11 @@ server {
proxy_set_header X-Yoho-Real-IP $http_x_forwarded_for;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
# proxy_cache cache_one_activity;
# proxy_cache_key $host$uri;
# proxy_cache_valid 200 302 301 10m;
# proxy_cache_valid any 1m;
# proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache cache_one_activity;
proxy_cache_key $host$uri;
proxy_cache_valid 200 302 301 10m;
proxy_cache_valid any 1m;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
}
}
... ...