TAG NAME reply_body_max_size

Description This option specifies the maximum size of a reply body
Build Option
Default
Usage
reply_body_max_size size [acl acl...]
Default
none
Synopsis
Using this you can prevent users from downloading very large files, such as MP3′s and movies.

Note: 1. Downstream caches probably can not detect a partial reply if there is no content-length header, so they will cache partial responses and give them out as hits.  You should NOT use this option if you have downstream caches.
2. A maximum size smaller than the size of Squid’s error messages will cause an infinite loop and crash Squid. Ensure that the smallest non-zero value you use is greater that the maximum header size plus the size of your largest error page.

Arguments

size
Maximum reply body size
acl
Access lists on which this functions during match

Example(s)

acl site url_regex -i ^http://squidconfiguration.com
reply_body_max_size 5 KB site
Here, the reply contains content-length. Its size is checked with the specified value. If it is greater then the specified range the an error page is displayed only for this site while access to other sites are allowed.