LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-15-2009, 06:31 AM   #1
bmw-slangen
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
squad reading old data even webpage is updated


Hi, I'm fairly new to Linux and have a PC with Mandrake Linux 10.1 installed acting as a router/gateway.

However squad seems to do a very annoying thing. When some webpages are updated, squad doesn't catch this and returns old cached data to me. Extremely annoying!

How can I get rid of this problem? Change the config file? Tried to read but couldn't see any useful - a cache that is not updating sounds more like an error than a feature to me... Can I turn squid off? Don't really need a cache in the middle honestly...

Please point out if I should add config files or logs and which ones.

I'm using the default squid configuration - I've just installed Mandrake Linux and used the default config.
 
Old 08-15-2009, 10:06 AM   #2
bmw-slangen
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Original Poster
Rep: Reputation: 0
An even larger problem occured now!

I've made a mistake and copied squid.conf.default to squid.conf (since I assumed these were identical) and now NOTHING works!

I have tried to modify the squid.conf file but nothing helps. I know you have to change the access rights and I've done that (I've changed so everything goes through) but I can get get any HTTP traffic through!

I just want to get HTTP traffic working. I don't care about caches and fancy options at the moment - I've just want to get it working.

Does anyone have an idea of how to get this working again?
 
Old 08-16-2009, 04:43 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
While there are many posters who have worse spelling than you, you seem to have made a particularly important spelling error here, and so you should consider correcting it.

You type 'squad' when I think you mean 'squid'; doing this in the title means that it is probably mostly people who have knwledge about the program 'squad' who will read further (I know of no such program, and nor does my package manager, but it does know of a debugging program known as 'crimesquad' and it is just possible the 'squad' is an accepted abbreviated form for 'crimesquad').

This, of course, means that few people read your post and that reduces your chances of getting help.

Quote:
I've made a mistake and copied squid.conf.default to squid.conf (since I assumed these were identical) and now NOTHING works!
...well, all you have to do is to undo the changes...

Did you copy the old squid.conf before doing anything? Then the solution is simple.

Assuming that you made the mistake of not doing this, had you made manual modifications to the squid.conf and can you remember well enough to redo those mods?

If the issue is that, on install, mandrive does 'helpful' stuff and automagically sets up your squid.conf (to a limited extent, anyway) pragmatically the easiest way forward may be to uninstall and re-install. making sure this time to keep safety copies of things that you have changed.

Now, back to draining the swamp...

Quote:
However squad seems to do a very annoying thing. When some webpages are updated, squad doesn't catch this and returns old cached data to me. Extremely annoying!

How can I get rid of this problem? Change the config file? Tried to read but couldn't see any useful - a cache that is not updating sounds more like an error than a feature to me... Can I turn squid off? Don't really need a cache in the middle honestly...

Firstly, get rid of the cache, if you don't need it. You may find out that this isn't a squid problem after all but a browser/coding problem. there are 'no cache' directives that can be used in html that can be used to stop pages from being cached. primarily this should be used where 'database driven' pages are not expected to be the same every time that they are accessed. If the no cache tag isn't used (sloppy coding) or the browser does not respect it, then you will see this problem.

A 'work-around' is to use shift-refresh or control-refresh (depending on browser) to force a refresh.

A decade or so ago, squid used to need some help to cope with this, but these days seems better so I am unclear whther squid is to blame in this case.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why we don't call Geek Squad - Ever! spankbot General 71 10-18-2009 04:33 AM
How to fetch data from a webpage and a proprietary IOS Mustafa^Qasim Programming 9 04-02-2008 08:50 AM
read data from webpage munna_dude Programming 3 10-06-2007 05:03 AM
reading data from a file afrm Programming 2 12-16-2003 07:43 PM
Reading COM Port Data croakofonix Programming 1 06-11-2003 04:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration