1,105,286 Community Members

Differences between HTTP caching in client and HTTP caching in Proxy Server

Member Avatar
minimee120
Junior Poster in Training
86 posts since Feb 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

Just would like to know some differences, am learning about it in class

Member Avatar
CimmerianX
Practically a Master Poster
658 posts since Jul 2010
Reputation Points: 53 [?]
Q&As Helped to Solve: 83 [?]
Skill Endorsements: 13 [?]
 
0
 

It's really just where the copy of the content is stored.

Think of the path taken by your PC to get web content when using a proxy.
1) Your browser makes the request.
2) Browser sends the request to the proxy.
3) Proxy relays the request to public www site.
4) public www site sends content to the Proxy.
5) Proxy sends it to your browser for display.

If you hit a site often, like Daniweb, certain static content doesn't change. Logo Image for example. If the file hasn't changed, there's no need to re-download it. right?

(Basically) Your browser can cache the logo image locally, when the requests go out for the content, there is no need to request the image file again. If you have 50 machines, each one must keep a copy of the logo in local cache after having downloaded it at least once. If the logo changes, 50 machines must pull the file again.

If the proxy is caching, then the logo is stored on the server. The 1st daniweb visitor reguests the page and the images are pulled by the proxy and now stored on the proxy. The next 49 machines that visit daniweb pull the image from the proxy instead of the daniweb host, thus saving the bandwith of pulling the image 49 more times. If the image changes, the server pulls it just once to service the 50 internal machines.

Member Avatar
riahc3
 
1,397 posts since May 2008
Reputation Points: 45 [?]
Q&As Helped to Solve: 14 [?]
Skill Endorsements: 18 [?]
Team Colleague
 
0
 

Here is a intresting thought though: In now, a modern area, are proxy servers really neccesary (in the scenario you put of pulling a logo)? With all the bandwidth avaliable to most first class countries....I dont see it logical.

I agree in other scenarios though a proxy server is very important and can save a lot of bandwidth.

Member Avatar
lolafuertes
Posting Shark
912 posts since Oct 2008
Reputation Points: 145 [?]
Q&As Helped to Solve: 196 [?]
Skill Endorsements: 7 [?]
 
0
 

Is not a bandwidth (speed) problem, is a traffic (volume) one.

Imagine an scenario: 1 web server, 100.000.000 pages accessed each day. If you put some proxies in the middle, all the static parts will flow only from the server once, then from the proxies, while the dynamic part flow always from the server.

This helps to diminish not only the traffic but the server work.

Hope this helps.

Member Avatar
riahc3
 
1,397 posts since May 2008
Reputation Points: 45 [?]
Q&As Helped to Solve: 14 [?]
Skill Endorsements: 18 [?]
Team Colleague
 
0
 

Is not a bandwidth (speed) problem, is a traffic (volume) one.

Imagine an scenario: 1 web server, 100.000.000 pages accessed each day. If you put some proxies in the middle, all the static parts will flow only from the server once, then from the proxies, while the dynamic part flow always from the server.

This helps to diminish not only the traffic but the server work.

Hope this helps.

Did not think of the server workload.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article