Quote:
Originally Posted by cooljai
The site is hosted somewhere else and what users are complaining repeatedly is that they uploaded the new contents but their browser is displaying old one (probably from cache) and sometimes it display fine. I need a solution to be sure that squid should get latest/updated contents or do not cache this particular website at all.
|
For most browsers, there is a way to force a reload the page (^R (control button and R at the same time), for example). In this case you should get the 'clean', uncached, page. Does this help your users?
As I previously commented, you can write html to instruct the browser and squid not to cache the page, so with corectly written html this shouldn't be an issue. In my experience, squid, at least, respects these no caching instructions. But that's only with correctly written html.... And it may be that some browsers have behaviour that violates the html standards. I have no real experience with this specific aspect of how browsers perform, but, somehow, when I was writing that the word "Microsoft" kept coming into my mind.
I suppose once you get a reputation as an abuser of standards, people may jump to the conclusion that its is your fault (just because it usually is)... Ho, hum.
Quote:
|
I have added new acl (as per config written in my first post) and inserted a new "no_cache deny acl" to avoid caching the site. I can also see from squid access logs that all hits of that site are "DIRECT" but still users sometimes see old contents (but always fine if we bypass squid).
|
That's a bit of mystery to me. I was expecting it still to be 'bad' some of the time because I was expecting the remaining problems to be down to browser caching, so I was expecting occasional problems even with squid bypassed.
Quote:
|
About Delay, it might be DNS issue. Can you plz suggest that what is a good solution for this? should I start DNS service in squid server itself OR point it to nearest DNS server?
|
More or less all I know about squid, I know from squid.conf. From what I've figured out from there, you can't directly control where squid gets name lookups from; it uses the standard system set up for that, so you have to configure standard networking things (although there is an implication that squid
can cache name lookups that it gets from the standard services - whether this is better or worse than a local dedicated name cache is unclear to me).
So you need to use the standard tools (dig primarily) to look at your nameserving performance and you need to look at your host file and nsswitch to check that you don't have the order of usage of nameservices wrong (the most usual error seems to be to have a non-existant or unconfigured service
first in the list; it then tries to use this services; it times out when that services doesn't respond and only then uses the 'good' services - as you can imagine, this really slows every name look up).
As 'internal' (to your own network) hosts are often dealt with differently from hosts out on the wider internet, that might be a pointer to where a misconfiguration might lie, particularly if this site was once hosted internally and has been moved.