虽然可以让登录的用户不缓存,但是一旦其他用户(游客)访问进行缓存下来了,登录的用户访问就会读取缓存的数据,
不知道能不能让登录的用户(带cookie?)忽略缓存数据
不知道能不能让登录的用户(带cookie?)忽略缓存数据
1
iCodex Oct 28, 2014
对动态的页面进行缓存是愚蠢的行为。但总归是要面对。
那就直接pipe掉~ 缓存不作处理。 proxy_cache_bypass $cookie_nocache $arg_nocache $arg_comment; proxy_no_cache $cookie_nocache $arg_nocache $arg_comment; proxy_cache_bypass $http_pragma $http_authorization; proxy_no_cache $http_pragma $http_authorization; proxy_cache_bypass $skip_cache; proxy_no_cache $skip_cache; more: http://nginx.com/resources/admin-guide/caching/ |
2
notsobad Oct 28, 2014
proxy_cache ui-proxy-cache;
proxy_cache_bypass $cookie_user; proxy_no_cache $cookie_user; |