The head filter function consists of the following three base sections:
1. Decide whether to manipulate this reply
2. Manipulate this response
3. Call the next filter function
For example, here is a simple version of the "unmodified" header filter function. If the client's if-modfied-since head matches the last-modified header of the reply, the State is set to 304 not flushes. The head filter function has only one parameter ngx_http_request_t, but it allows us to access the client's head and shortly to send the reply head.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.