This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is it possible to change the MAX size of cached objects?

I just noticed that squid is not caching large files (>2MB?).  After scanning the docs at squid.org I didnt find exactly what I was looking for, and i didnt see any configuration options in the squid.conf-default file.   [:S] 

While i am on this subject, how about caching FTP GET request?  

----------------- cut -----------------

A Miss/Hit from my logs. As u can see a 6MB file missed both times.

700KB FILE 

1024052762.053  12640 10.1.2.99 TCP_MISS/200 739881 GET http://primacom.tucows.com/files2/BisonFTP42.exe - DIRECT/62.208.91.21 application/x-msdos-program

1024052824.873   4143 10.1.2.99 TCP_HIT/200 739881 GET http://primacom.tucows.com/files2/BisonFTP42.exe - NONE/- application/x-msdos-program

6MB FILE 

1024053985.384  76408 10.1.2.99 TCP_MISS/200 6810451 GET http://primacom.tucows.com/files2/CPRoxy.zip - DIRECT/62.208.91.21 application/zip

1024054348.402  77926 10.1.2.99 TCP_MISS/200 6810451 GET http://primacom.tucows.com/files2/CPRoxy.zip - DIRECT/62.208.91.21 application/zip

----------------- cut -----------------


This thread was automatically locked due to age.
  • That is what is puxxling..i do not have that entry in my conf-default

    no max file anything do i need to just reinstall astaro from scratch?

    Here are hte contents of my squid.conf-default file:
        IW   /var/chroot-squid/etc/squid.conf-default       Row 103  Col 1    5:36  Ctrl-K H for help
    visible_hostname 
    memory_pools off
    forwarded_for off
    query_icmp off
    test_reachability off
    buffered_logs off
    buffered_logs on
    anonymize_headers deny Accept-Encoding
    anonymize_headers deny Accept-Encoding
    anonymize_headers deny From Referer Server
    anonymize_headers deny User-Agent WWW-Authenticate Link
    anonymize_headers allow Allow Authorization Cache-Control
    anonymize_headers allow Content-Encoding Content-Length
    anonymize_headers allow Content-Type Date Expires Host
    anonymize_headers allow If-Modified-Since Last-Modified
    anonymize_headers allow Location Pragma Accept
    anonymize_headers allow Accept-Language
    anonymize_headers allow Content-Language Mime-Version
    anonymize_headers allow Retry-After Title Connection
    anonymize_headers allow Proxy-Connection
    fake_user_agent Nutscrape/1.0 (CP/M; 8-bit)
    icon_directory /etc/icons
    error_directory /etc/errors
    snmp_port 3401
    acl snmppublic src 127.0.0.1/255.255.255.255
    snmp_access allow snmppublic
    snmp_access deny all
    snmp_incoming_address 127.0.0.1
    snmp_outgoing_address 255.255.255.255
    redirector_bypass off
    ignore_unknown_nameservers off
    ie_refresh on

     
  • Just add it somewhere near the top. No big deal. Remember, if it isn't specified, Squid uses the default of 4096 KB. 
  • Thanks i made it 40 megs and chopped hte memory object cache while i am at it..thanks for everyone's help!