![]() |
Re: Simple view on how proxies work (inc DNS)
Quote:
If you issue an HTTP GET and also include an If-Modified-Since header then the web server will only send you the object if it has been modified since the date that you specified. If it hasn't, it replies with HTTP/1.1 304 Not Modified and then you can mark your content as being fresh again having only transferred a few bytes. You can view this in a trace by seeing lots of 304 responses typically coming back after you hit browser Refresh. But now we're getting away from the 'simple' aspect of this thread ... :) |
Re: Simple view on how proxies work (inc DNS)
Quote:
|
Re: Simple view on how proxies work (inc DNS)
Quote:
Cache-Control: max-age=3600 on appropriate images etc. then it optimises your web performance even further since the browsers/caches will know exactly when to refresh the content and won't need to guess by sending periodic IMS requests. For instance Google's logo.gif expires in Jan 2038! Of course if they want to change it then they just change the name. |
Re: Simple view on how proxies work (inc DNS)
what would happen if the page was updated
and Cache-Control: max-age=3600 was after the update? |
Re: Simple view on how proxies work (inc DNS)
Quote:
If you apply inappropriate expiry times then you risk browsers and caches storing your content for longer than is correct. The usual rule of thumb is to keep the html objects small and with short expiry times (or mark it uncacheable) and mark the larger objects with longer expiry times. The larger objects are the ones that you don't want being downloaded all the time anyway, since it will both load your web server and give users the impression that your page is slow. If you want to change the page and objects completely then change all the objects' names and then you can start afresh. More details are at http://www.web-caching.com/mnot_tutorial/ (might have posted that link before) |
Re: Simple view on how proxies work (inc DNS)
Yup, I noticed proxies had been turned on in both Leicester and Nottingham in the past week or so. Previously I'd pretty much always been proxy free.
Seems okay so far. |
Re: Simple view on how proxies work (inc DNS)
mr-b that would explain why I had so many problems on the development pages I used, the first time I downloaded the file probably cached it and because its a large file it is probably cached for a long time, but the file is updated at the server end numerous times a day, the cache made it pretty much unusable for me to use. This was before I setup my own proxy of course.
|
Re: Simple view on how proxies work (inc DNS)
Quote:
Just run your dev server's URL through the Cacheablity Engine http://www.ircache.net/cgi-bin/cacheability.py and it'll tell you exactly what's going on (Definitely given that link out before). If the file is being updated frequently then its Last Modified header will be more recent which will tell your browser or proxy to verify its freshness more frequently. |
Re: Simple view on how proxies work (inc DNS)
"The usual rule of thumb is to keep the html objects small and with short expiry times (or mark it uncacheable) and mark the larger objects with longer expiry times. The larger objects are the ones that you don't want being downloaded all the time anyway, since it will both load your web server and give users the impression that your page is slow. "
I thought by that you was reffering to size of file? I ran a link through that url and it seems to confirm my proxy server is only proxying and doing no caching which is what I want :) |
Re: Simple view on how proxies work (inc DNS)
i just ran ntlworld though that site and it said they are stale
|
Re: Simple view on how proxies work (inc DNS)
Quote:
The gifs have Last-Modified headers on and so will be cached and verified according to age. |
Re: Simple view on how proxies work (inc DNS)
The problem with proxies is they work on a flase premise. The false premise they work on is that external bandwidth is expensive - and thus it is worth spending time money and resource on reducing external bandwidth requirments. It is very like the false premise that 'storage' was expensive - that led to people coding year date fields as 2 numbers and not 4 - well into the 80's and beyond, thus creating the y2k problems.
I would challenge anyone to prove to me that the cost of running and maintaining the NTL proxies is less than the amount saved on external bandwidth costs. If you add in a cost for the problems these proxies cause for users as well then the figures make even less sense. Of course you can also use such proxies for other objectives - like limiting what and how much people can browse but that is apparently not the objective for NTL. PS there was an onlinbe petition setup a while back - but it's not had much support so far so maybe NTL's forced proxies are not that much of a problem to most users? http://www.petitiononline.com/ntlhpp/petition.html |
Re: Simple view on how proxies work (inc DNS)
Erol - you also need to factor in the bandwidth costs that the supplier of the data pays. A site pays its host bandwidth cost. NTLs (and others proxies) reduce the bandwidth I use at my host by about 25%, meaning I stay within my prepaid bandwidth.
NTLs proxies generally work well for me so I don't complain. Ctrl F5 addresses any problems. Occasionally I need to specify as the transparant Luton/Ware has gone screwy. I like to think of proxys like warehouses. Just because a pair of shoes is made in China this doesn't mean the entire stock stays there until its called for. They are shipped out to the other continents for quicker delivery. |
Re: Simple view on how proxies work (inc DNS)
Quote:
Quote:
|
Re: Simple view on how proxies work (inc DNS)
Quote:
This is also a reciprocal thing. NTL host sites. If all the proxies on the internet were switched off, then the bandwidth hitting NTLs web servers (their own ntlworld and all their customers) would increase and require more hardware and bandwidth. Bandwidth will become a more used resource, more scarse and more expensive. Quote:
|
| All times are GMT. The time now is 14:27. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum