Re: Homepage cache and cookies

2016-03-26 Thread B.R.
Make sure you test this unexpected behavior with a minimal, reproducible configuration. If you succeed, please share it or (even better!) fill a bug report . Otherwise, that meant you probably did something Wrong. ​You were previously saying proxy_hise_headers did not

Re: Homepage cache and cookies

2016-03-25 Thread john_smith77
So I found a solution and it seems like there is unexpected behavior from nginx. proxy_hide_header Set-Cookie does not seem to work when the location block is set to / So: location / { #Lots of other proxy stuff here.. proxy_hide_header "Set-Cookie"; } does not allow a cookie

Re: Homepage cache and cookies

2016-03-25 Thread john_smith77
Indeed, but that prevents all cookies from being set. What I am looking for is to have a cache hit, but have the set-cookie served from the origin server. In Apache httpd cache, this can be accomplished with CacheIgnoreHeaders Set-Cookie. The back end server here is Apache and I have tried

Re: Homepage cache and cookies

2016-03-24 Thread john_smith77
Thanks for the info. I have removed the redundant config. I suppose what I am really getting at is that I would like Set-Cookie to never be cached with a cache MISS so that the cached cookie values are then not there for subsequent HITS. Posted at Nginx Forum: