You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use lua script get Content-Length from upstream response. If the length bigger than some size, nginx will not to cache it (set u->cacheable = 0).
Here is the question how to get the u->headers_in.content_length_n value by lua and how to set u->cacheable by lua?
Maybe there have other better idea to implement the goal, your suggestion is wellcome.
The text was updated successfully, but these errors were encountered:
I want to use lua script get Content-Length from upstream response. If the length bigger than some size, nginx will not to cache it (set u->cacheable = 0).
Here is the question how to get the u->headers_in.content_length_n value by lua and how to set u->cacheable by lua?
Maybe there have other better idea to implement the goal, your suggestion is wellcome.
The text was updated successfully, but these errors were encountered: