proxy_cache_methods OPTIONS;

Maxim Dounin mdounin at mdounin.ru
Mon Jan 27 15:19:36 UTC 2014


Hello!

On Fri, Jan 24, 2014 at 03:33:39PM -0800, Jeroen Ooms wrote:

> Is it possible to cache the OPTIONS method? This pages gives exactly
> that example: http://www.packtpub.com/article/nginx-proxy
> 
> proxy_cache_methods OPTIONS;
> 
> However, when I try this, nginx writes in the error log:
> 
>  [warn] 7243#0: invalid value "OPTIONS" in ...

As of now, only GET, HEAD and POST methods can be used in 
proxy_cache_methods.  Allowed values are listed in syntax at 
http://nginx.org/r/proxy_cache_methods.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list