# Limiting proxy caching based on content size

**URL:** <https://www.ruby-forum.com/t/limiting-proxy-caching-based-on-content-size/201592>\
**Category:** NGINX\
**Created:** [January 11, 2011, 8:20am UTC](https://www.ruby-forum.com/t/limiting-proxy-caching-based-on-content-size/201592 "2011-01-11T08:20:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [January 11, 2011, 8:20am UTC](https://www.ruby-forum.com/t/limiting-proxy-caching-based-on-content-size/201592/1 "2011-01-11T08:20:27Z")

</div>

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:

> **[limiting proxy caching based on content size](https://forum.nginx.org/read.php?2,165287,165287#msg-165287)**
>
> 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...
