lua: ngx.location.capture / limit proxy_cache individual file size

agentzh agentzh at
Fri May 20 10:51:40 MSD 2011

On Fri, May 20, 2011 at 2:15 AM, Richard Kearsley
<Richard.Kearsley at> wrote:
> Is it possible to do a version of ngx.location.capture that only does a HEAD
> request rather than GET?

Please try

    ngx.location.capture("/some-location", { method = ngx.HTTP_HEAD })

If it does not work, please consider file a bug ticket on GitHub:

> I’m only interested in the headers returned, the body would make what I’m
> trying to do pointless L



More information about the nginx mailing list