Exclude from cache by content-length

Andrei lagged at gmail.com
Mon Apr 16 08:16:13 UTC 2018


Hello!

I have an odd upstream application (out of my control) which sometimes
responds with incomplete pages, and a 200 error.. This causes blank pages
to appear in cache. Is there a way to exclude from/bypass cache if the
content-length header from the upstream is lower than 5kb for example?
Thanks everyone!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180416/db83d16d/attachment.html>


More information about the nginx mailing list