We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,924 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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

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

4
Contributors
4
Replies
6 Days
Discussion Span
3 Months Ago
Last Updated
13
Views
minimee120
Junior Poster in Training
76 posts since Feb 2012
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 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.

CimmerianX
Posting Pro in Training
499 posts since Jul 2010
Reputation Points: 49
Solved Threads: 59
Skill Endorsements: 10

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.

riahc3
 
Team Colleague
1,300 posts since May 2008
Reputation Points: 62
Solved Threads: 13
Skill Endorsements: 11

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.

lolafuertes
Practically a Posting Shark
889 posts since Oct 2008
Reputation Points: 164
Solved Threads: 189
Skill Endorsements: 5

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.

riahc3
 
Team Colleague
1,300 posts since May 2008
Reputation Points: 62
Solved Threads: 13
Skill Endorsements: 11

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0992 seconds using 2.69MB