Forum: NGINX can proxy_cache(nginx) in front of internal location?

2974d09ac2541e892966b762aad84943?d=identicon&s=25 (Guest)
on 2014-02-28 03:57
(Received via mailing list)
I want to using proxy_cache in front of internal location,but proxy_pass
not code like following:

location /proxy {
    proxy_cache cache;
    proxy_cache_key $uri;
    proxy_cache_valid 200 304 10d;
    expires 10d;
    proxy_pass @bar;

location @bar {
    content_by_lua '

proxy_cache must used with proxy_pass?any other method to do this?


Posted at Nginx Forum:,247998,247998#msg-247998
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.