How a Proxy Cache works?

hi,

Proxies aim to improve the performance offered by the Web, providing end users with faster access to its resources.

my question is like when a webpage is accessed the contents of the page remains in the proxycache. when another user requests the same page it is given to the user from the cache. in case if the contents of the page is changing every time (like some thing i buy in www.ebay.de) in this case how it works.

any ideas welcome.
vihar123Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vihar123Author Commented:
hi,

from web search, i found some info regarding proxy cache.

there is a mechanism for the proxy to check with the remote site, before it gives you a copy it pulled earlier, to make sure the page  hasn't changed since.

but i didnot found ,how the above mechanism works .  :(

if any links/notes are appreciated.




0
Jared LukerCommented:
I'm sure it depends on what software you are using for the caching.  My experiece is that you should be able to configure the proxy to check the requested page on the internet.  If the page has not been changed, then it issues the page from the cache to the requestor, otherwise, it recaches and then issues to the requestor.

Jared
0
muhalokCommented:
Cache server vs content.

Content can be dynamic and static.
Static content - text, images, java scripts - those do not change, they are sitting on a Web Site and are serverd upon a request from client.
Dynamic content - pages that are generated by the Web Server upon a request - query, posting a form, etc.

There are 2 paramters for content that you can identify in IE cache for example: "Last Modified" and "Expires".
In case that "Last Modified" has no value - this is a file which is a dynamic content and if it has a value - its static.

"Expires" parameter is set in order to refresh the content after the time set in "expires" is reached.


Now about the Cache proxies:

1. Cache has 3 purposes:
- Decrease Bandwidth usage by bringing the content closer to the client (Browser).
- Serve the content faster
- Decrease load on the Web Servers.


2. Caching algorithms:

Static content is server from cache until "expires" point is reached.
In case that "expires" has no value - static content will not be ever refreshed.

When "expires" point is reached - proxy will forward the request from the browser to the Web Server with a message - is the content still valid? and if it will receive a positive answer from the Web Server - than the content will be downloaded from the Web Server, added to Cache and served to the client (Browser).
Otherwise - the content will be served from the Cache but "expires" will be updated.

Dynamic content is not cached - and it shouldn't . Lets make as an example : the content on the page is current Stocks numbers - you woulnd't want to get them from cache because they will be old news then.

There are some ways to cache dynamic content as well, while not serving an obsolete content: its called "selective caching". Proxy will scan every dynamic page passing through it and will interpret it into 2 parts: static (part of the page that is not changed) and dynamic - changing part. Usually "static" part of dynamic page is >> than the dynamic part. So its worth caching it.

In case you have more questiong - please ask.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hey MSSPs! What's your total cost of ownership?

WEBINAR: Managed security service providers often deploy & manage products from a variety of solution vendors. But is this really the best approach when it comes to saving time AND money? Join us on Aug. 15th to learn how you can improve your total cost of ownership today!

vihar123Author Commented:
hi,

By configuring the proxy to check if the page is requested is changed or not. it takes the same time to redirect the request and get the page from the main server.

am i right..

can u provide me with some links which explains this mechanism.
0
vihar123Author Commented:
Hi muhalok,

thanx for ur explanation. i have some doubts u have given expires, for each and every request it check whether the pages expires r what?.r only if the page has the dynamic content it checks??.
0
Jared LukerCommented:
Timewise, it might be the same, but not bandwidth wise.  If it can keep from having to download the entire page from the graphics, scripts, text, etc, then that would be a huge bandwidth saver.

I think that it would save time though, because once it verifies that the information is the same, it can issue the cached page at 100mb/sec (the internal lan speed), instead of the speed that it would take to get the whole page from the host server.

Jared
0
vihar123Author Commented:
Hi,

can u help me in giving some links.
0
muhalokCommented:
0
vihar123Author Commented:
one doubt

suppose if there is a page in the cache and if the page is changed in the mainserver the page in the cache is no more valid , what happens to that page it remains in cache and deleted after some time r the new page is replaced instead of old page.
0
muhalokCommented:
the expired cache contents is replaced by any new content upon a request from the client , i.e. - when client sends for example an HTTP GET request for the content - it will send it with "If-Modified-Since <Time of download>" to the server and this request of course will be forwarded to the Server by Cache Proxy. In case that content is not modified - Server answers with HTTP 304 - Not Modified, else - server answers with HTTP 200 OK and sends the new content - which is cached and replaces the old files.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.