Koozali.org: home of the SME Server

Disable caching, but leave proxy on - 7.2

Offline orcusomega

  • *
  • 12
  • +0/-0
Disable caching, but leave proxy on - 7.2
« on: September 19, 2007, 09:44:14 PM »
Has anyone been able to keep the Squid proxy running (needed for VPN) but disabling the cache functionality?  There are several sites that end up not refreshing as developers are working on them, and the cache functionality is really not necessary anyways in our case (there are so few users, it is pointless, really).

Any help is appreciated!

Bob


Offline orcusomega

  • *
  • 12
  • +0/-0
Re: Disable caching, but leave proxy on - 7.2
« Reply #2 on: September 19, 2007, 10:06:08 PM »
Thanks for the post, but to be honest, I am not sure :)

The sites work fine when the HTTP proxy is disabled through the admin panel, but then VPN users cannot get to the internet via HTTP. when I enable the proxy, the VPN users can get to the internet via HTTP, but everyone gets stale results.  Thoughts?

Bob

Offline mmccarn

  • *
  • 2,657
  • +10/-0
Re: Disable caching, but leave proxy on - 7.2
« Reply #3 on: September 19, 2007, 10:45:36 PM »
Quote
but then VPN users cannot get to the internet via HTTP
I normally fix this at the VPN client end by un-selecting the checkbox "Use default gateway on remote computer":
  • Open the VPN connection properties
  • Go to the "networking" tab
  • Highlight "Internet Protocol (TCP/IP)" and click "Properties"
  • Click on the "Advanced" button
  • Un-check "Use default gateway on remote network"
  • click "OK", "Apply", "Close", etc, etc, until your VPN Connection Properties window is closed

The next time you establish the VPN it will only be used for traffic to your SME-hosted network.  Other traffic - straight to google, for example, will go straight from their workstation to the internet-based host.

The above should let you disable the proxy but allow VPN clients to "see" the internet.

Or, you could follow the instructions linked above and configure your system to 'BypassProxyTo' the hosts that your developers are actively working on, or 'BypassProxyFrom' the internal hosts your developers use.

Or, I think there's a way to set an expiration time on a web page - if the page is expired, squid will download a new version.

Or, I think there's a way to tell your browser to tell the proxy server to ignore its cache and download the latest version.

Or, you could open a bug in the bug tracker asking why you have to have squid enabled for PPTP clients to see the internet...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Disable caching, but leave proxy on - 7.2
« Reply #4 on: September 20, 2007, 07:15:27 PM »
Or, I think there's a way to set an expiration time on a web page - if the page is expired, squid will download a new version.

Yes - that needs to be done at the website end. If a website is under development, they should set the content as non-cacheable.

Quote
Or, I think there's a way to tell your browser to tell the proxy server to ignore its cache and download the latest version.

Yes, it depends on browser. Hold shift key while clicking the link in Firefox. I thing F5 for IE.