Welcome! Log In Create A New Profile

Advanced

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

Richard Kearsley
May 19, 2011 02:16PM
Hi
Is it possible to do a version of ngx.location.capture that only does a HEAD request rather than GET?
I'm only interested in the headers returned, the body would make what I'm trying to do pointless :(

Also if anyone has another method/idea of how to do this:
I want to limit requests for files of size greater than 512000 bytes using proxy_cache and actively deny and not cache them
I tried some stuff with 'if' but it's evaluated before the upstream-content-length is set :(





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

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

Richard Kearsley May 19, 2011 02:16PM

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

agentzh May 20, 2011 02:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 167
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