Limiting proxy caching based on content size

Hi,

I’m wondering if I’m missing something obvious in the documentation, but
it doesn’t appear to me like it’s possible to tell the cache to not
cache something if the size of the content is too big.

For example, would it be possible to only cache files less than 5MB in
size? Has anyone accomplished this?

-Ed

Posted at Nginx Forum: