Re: Proxying and caching a fragile server to ensure availability

2013-08-21 Thread B.R.
Hello, On Wed, Aug 21, 2013 at 10:35 PM, cachito wrote: > B.R. Wrote: > --- > > Hello, > > > > On Wed, Aug 21, 2013 at 9:42 PM, cachito wrote: > > > > > if ($http_cookie ~* > > > > > "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress

Re: Proxying and caching a fragile server to ensure availability

2013-08-21 Thread cachito
B.R. Wrote: --- > Hello, > > On Wed, Aug 21, 2013 at 9:42 PM, cachito wrote: > > > if ($http_cookie ~* > > > "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in") > { > > set $no_cache 1; > > } > > > > ​​If the user sen

Re: Proxying and caching a fragile server to ensure availability

2013-08-21 Thread B.R.
Hello, On Wed, Aug 21, 2013 at 9:42 PM, cachito wrote: > if ($http_cookie ~* > "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in") { > set $no_cache 1; > } > ​​If the user sends requests using cookies from Wordpress, the cache won't be used... Thus, you seem not to cac

Proxying and caching a fragile server to ensure availability

2013-08-21 Thread cachito
Hello colleagues. I'm trying to save a website hosted on a (VERY) low-powered server by placing a strong nginx server in front of it as a caching proxy. I don't control the website code and the rest of its configuration, so I'm not free to move it elsewhere stronger. I'd like to have the caching