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

    Squid cache lifetime n dynamic site

    Scheduled Pinned Locked Moved pfSense Packages
    10 Posts 3 Posters 6.0k 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.
    • X Offline
      xaviero
      last edited by

      hello,

      i dunno put this topic where, i try put it here.

      i have configure squid for pfsense, i set the cache to 20MB. i had 2 cases here, i need some advise.

      case 1:
      i try download winamp from winamps site. it about 9.8mb
      i assume the download file will cache and save in squid harddisk.
      after about 30 minutes finished, i try to redownload it. and wow, it save bro… the traffic just go to squid, and back to LAN.... thr 9.8mb of winamp finished about 7 seconds.
      problem:
      after a day, i try redownload winamp. and badly, the cache  gone.....  :(
      it start from beginning download from winamps site. i also had try, to shutdown for a night, then re-test it, and try to make pfsense on for 24 hours, it just about same. the cache life time just only a day....

      case 2:
      i try to save cache file for downloading from dyanamic site. let say download.com (not rapidshare or megaupload).
      problem:
      why squid can not cache a file from the dynamic site ???

      also a question, pfsense using squid 2.6.xx, can i upgrade it manually to 2.7.xx ? it looks like squid 2.7.xx more stable n reliable then 2.6.xx

      thanks

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        http://michaelboman.org/wiki/index.php?title=Squid

        This is Zen of Squid today. Read it use it ;)

        ps: if u r newbie in squid do not just copy & paste. analyze it 1st line by line

        1 Reply Last reply Reply Quote 0
        • X Offline
          xaviero
          last edited by

          thanks 4 reply

          hhmmm….

          where can i put that code in pfsense ? manually or via WebGUI ???

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            By GUI: Proxy server / General settings / Custom Options

            1 Reply Last reply Reply Quote 0
            • X Offline
              xaviero
              last edited by

              thanks sartic, i got it work now, n i gonna test it for 1-2 days for downloaded file.
              for static downloaded file, it work.
              but, when i goto dynamic site, like download.com, using michaelboman script, it not work either.

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                i told u u have to read.
                if u r expecting that squid will cache same file on other position of mirror site forget it.
                and be sure that your lines r logically good as squid wants.

                1 Reply Last reply Reply Quote 0
                • X Offline
                  xaviero
                  last edited by

                  if u r expecting that squid will cache same file on other position of mirror site forget it.

                  thats give me a hint. maybe squid can't cache a link that using dynamic url… isn't it ???

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    chudy
                    last edited by

                    First of all those numbers on refresh pattern are not in seconds(its minutes). Although browser is in seconds but squids refresh pattern is in minutes.@xaviero:

                    thanks sartic, i got it work now, n i gonna test it for 1-2 days for downloaded file.
                    for static downloaded file, it work.
                    but, when i goto dynamic site, like download.com, using michaelboman script, it not work either.

                    Use storeurl rewrite feature of squid. The most efficient/effective way of caching dynamic contents (like youtube).

                    squids negative side of storeurl feature. vary content will miss(when squid restarted) with storeurl rewrite.

                    @xaviero:

                    if u r expecting that squid will cache same file on other position of mirror site forget it.

                    try playing with my patched lusca.
                    thats give me a hint. maybe squid can't cache a link that using dynamic url… isn't it ???

                    1 Reply Last reply Reply Quote 0
                    • X Offline
                      xaviero
                      last edited by

                      Use storeurl rewrite feature of squid. The most efficient/effective way of caching dynamic contents (like youtube).

                      cmiiw, is storeurl rewrite available in squid 2.6.x ????

                      1 Reply Last reply Reply Quote 0
                      • ? This user is from outside of this forum
                        Guest
                        last edited by

                        As i know this is just way to call external program.
                        I am using mikrotik 4 this. It should be nice that we finally see v2.7 of squid

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