Welcome! Log In Create A New Profile

Advanced

Re: How to use srcache_store while proxy_pass use to connect backend

agentzh
March 08, 2012 01:04AM
On Thu, Mar 8, 2012 at 1:51 PM, n1xman <nginx-forum@nginx.us> wrote:
> /var/log/nginx/error.log
> http://pastebin.com/W7Jk3sq8
>

The line 182 in your error.log snippet gives you the answer:

2012/03/08 10:49:10 [debug] 20521#0: *11 srcache_store skipped due to
response header Cache-Control

That is, the response from your backend server explicitly prohibits
caching via the Cache-Control response header. And the line 191 in
your error.log snippet confirms this:

Cache-Control: no-cache

If you want to enforce caching in this very case, just turn on the
srcache_store_no_cache config directive, like

srcache_store_no_cache on;

See http://wiki.nginx.org/HttpSRCacheModule#srcache_store_no_cache for
more details.

Or turn off the srcache_response_cache_control config directive to
make ngx_srcache ignore the Cache-Control response header altogether:

srcache_response_cache_control off;

See http://wiki.nginx.org/HttpSRCacheModule#srcache_response_cache_control
for more details.

Best regards,
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to use srcache_store while proxy_pass use to connect backend

n1xman March 05, 2012 12:48PM

Re: How to use srcache_store while proxy_pass use to connect backend

hira2 March 05, 2012 01:23PM

Re: How to use srcache_store while proxy_pass use to connect backend

agentzh March 06, 2012 08:28PM

Re: How to use srcache_store while proxy_pass use to connect backend

n1xman March 08, 2012 12:51AM

Re: How to use srcache_store while proxy_pass use to connect backend

agentzh March 08, 2012 01:04AM

Re: How to use srcache_store while proxy_pass use to connect backend

n1xman March 08, 2012 01:31AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 286
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready