Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to completely disable Squid caching

    Scheduled Pinned Locked Moved Cache/Proxy
    7 Posts 3 Posters 5.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      PakiFo
      last edited by

      Hello,

      Is there any way to completely disable the caching option in the Squid proxy server ?
      I looked for this option and I just couldn't find it.

      If you are curious about the reason i'm asking, I just found out that my Suricata (IPS) detects malicious sites as expected when it finds it, but squid still provide the malicious content to other computers from its cache in case they are also trying to access the malicious site (even when it is in Suricata's block list !)

      Any help to disable the squid caching will be highly appreciated !

      • I'm running the latest versions of pfSense (2.4.0) and Squid (0.4.42)
      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Set the Hard Disk Cache System to null.

        1 Reply Last reply Reply Quote 0
        • P
          PakiFo
          last edited by

          @doktornotor:

          Set the Hard Disk Cache System to null.

          Already tried it without success.
          I also tried to set the "Maximum Object Size" to 0 and it still had something cached somewhere.

          I assume that even though it is not caching to the disk, it still caches something in the RAM.

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            Well then set the RAM cache size to 1 or whatever.

            1 Reply Last reply Reply Quote 0
            • P
              PakiFo
              last edited by

              @doktornotor:

              Well then set the RAM cache size to 1 or whatever.

              Even with:

              • "Hard Disk Cache System" - Null
              • "Maximum Object Size" - 0
              • "Memory Cache Size" - 0
              • "Maximum Object Size in RAM" - 0

              I'm still getting malicious cached content from squid  >:(

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                Eh, 0 is not a valid value. Use https://github.com/pfsense/FreeBSD-ports/pull/438 if you really cannot live with superdangerous 1MB cache in RAM.  ::)

                1 Reply Last reply Reply Quote 0
                • M
                  MarcoP
                  last edited by

                  @doktornotor:

                  Eh, 0 is not a valid value. Use https://github.com/pfsense/FreeBSD-ports/pull/438 if you really cannot live with superdangerous 1MB cache in RAM.  ::)

                  Looking at the commits, does it means we will be able to use "all" inside the "Do Not Cache" textarea in "Local Cache" tab?

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.