Max File Size Allowed In Cache
mdounin at mdounin.ru
Tue Sep 30 12:05:24 UTC 2014
On Tue, Sep 30, 2014 at 01:35:30AM -0400, martinproinity wrote:
> would be interesting to know the answer to this questions as I was wondering
> as well if that is possible.
As of now there is no easy way to limit caching based on a
response size. In simple cases, when the Content-Length header is
present in a response, the proxy_no_cache combined with a map (or
embedded perl, or whatever) can be used to disable caching based
on the Content-Length header returned.
See here for documentation:
More information about the nginx