Re: Question about proxy_cache_key

2017-02-19 Thread Dewangga Bachrul Alam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hello! Thanks Francis, yes it's about 'Vary' header should be ignored on proxy_ignore_headers. Thanks for the hints. On 02/16/2017 07:41 PM, Francis Daly wrote: > On Thu, Feb 16, 2017 at 01:08:35PM +0700, Dewangga Bachrul Alam > wrote: > > Hi the

Re: Question about proxy_cache_key

2017-02-16 Thread Francis Daly
On Thu, Feb 16, 2017 at 01:08:35PM +0700, Dewangga Bachrul Alam wrote: Hi there, > proxy_cache_key "$uri$is_args$args"; > > location / { > proxy_ignore_headers Cache-Control Expires Set-Cookie; > rewrite (?.*) $capt?$args&view=$mobile break; > } > My question is, the URI > htt

Re: Question about proxy_cache_key

2017-02-15 Thread Dewangga Bachrul Alam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Example: [dominique@galea ~]$ curl -I "http://networksninja/artikel/berita/a-pen-by-hair"; HTTP/1.1 200 OK Server: networksninja Date: Thu, 16 Feb 2017 06:48:13 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Vary: Accept-Encoding

Question about proxy_cache_key

2017-02-15 Thread Dewangga Bachrul Alam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hello! I've compiled latest nginx 1.11.10 with ngx_cache_purge, my configurations likes: proxy_cache_key "$uri$is_args$args"; proxy_cache_path /var/cache/nginx/proxy_cache levels=1:2 keys_zone=networksninja_cache:60m inactive=60m use_temp_path=off