Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx proxy_cache_methods doesn't work #15

Closed
nguyennhatkhang92 opened this issue Sep 7, 2015 · 1 comment
Closed

nginx proxy_cache_methods doesn't work #15

nguyennhatkhang92 opened this issue Sep 7, 2015 · 1 comment

Comments

@nguyennhatkhang92
Copy link

Hi,
I'm try use nginx proxy_cache for caching large file. The following is my idea:

 Browser --> Nginx --> Storage
  • Nginx is a function of caching and proxy server.
  • Storage is contain files server.
  • I'm have used ngx.var.upstream_cache_status to determine the status of the HIT file caching but it does'n work, nil value. Then I found this: subrequest proxy cache lua-nginx-module#125 . I would caching file with only GET method and use HEAD method is checked file caching done(HIT) but proxy_cache_methods doesn't work, proxy_method also. I'm try request from Browser with HEAD, GET method then nginx proxy pass to Storage server with GET methods, I do not understand what the reason.
@nguyennhatkhang92 nguyennhatkhang92 changed the title lua nginx can't read upstream_cache_status nginx proxy_cache_methods doesn't work Sep 7, 2015
@agentzh
Copy link
Member

agentzh commented Sep 8, 2015

@nguyennhatkhang92 Please, do not cross-post. It's annoying. Also, this ticket has nothing to do with the openresty.org site itself. I'm closing this.

@agentzh agentzh closed this as completed Sep 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants