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

    JavaScript XMLHttpRequest (XHR) - TCP_DENIED/403 HIER_NONE/- text/html

    Scheduled Pinned Locked Moved Cache/Proxy
    4 Posts 2 Posters 1.1k 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.
    • kklouzalK
      kklouzal
      last edited by

      I'm monitoring Squid Real Time Access Table and a high frequency of TCP_DENIED/403 keep appearing for a single address. Squid access log shows HIER_NONE/- text/html. Upon further investigation this is originating from a website using JavaScript XMLHttpRequest (XHR). Is there a way to get this to pass through the proxy? As it stands Chrome Developer Tools Network Analysis show the XHR requests as stalled with no response. The requests keep piling up in the browser while browsing the site so the data is obviously being blocked.

      Is there any way to allow these requests through the proxy?

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        Since squid has a really hard time caching the dynamic web these days, I've stopped using it as a cache. At the best of times, my hit rate was only ever 4-7%, which is a waste of my time to worry about. These days I only use squid as a platform for squidguard's URL filtering.

        1 Reply Last reply Reply Quote 0
        • kklouzalK
          kklouzal
          last edited by

          I completely agree with you. I abandoned the idea of using squid as a cache a couple years ago. Recently we've been going over our ISP data cap once every couple of months and I'm exploring the idea of using squid to cache again, the 10% may make the difference of not having any overage charges.

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            Figure out who is using all the bandwidth & how and then start limiting them somehow. Is this a family home? Roommates? A business? If it's streaming video or torrents (which make up the two of the biggest culprits) then good luck with squid. I decided to start paying an extra $20/m to move to an unlimited account for just this reason.

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