Sunteți pe pagina 1din 3

Web cache

Web cache
A web cache is a mechanism for the temporary storage (caching) of web documents, such as HTML pages and images, to reduce bandwidth usage, server load, and perceived lag. A web cache stores copies of documents passing through it; subsequent requests may be satisfied from the cache if certain conditions are met.[1] It should not be confused with a web archive, a site that keeps old versions of web pages.

Systems
Web caches various systems. A search engine may cache a website. A forward cache is a cache outside the webserver's network, e.g. on the client software's ISP or company network.[2] A network-aware forward cache is just like a forward cache but only caches heavily accessed items.[3] A reverse cache sits in front of one or more Web servers and web applications, accelerating requests from the Internet.[4] A client, such as a web browser, can store web content for reuse. For example, if the back button is pressed, the local cached version of a page may be displayed instead of a new request being sent to the web server. A web proxy sitting between the client and the server can evaluate HTTP headers and choose to store web content. A content delivery network can retain copies of web content at various points throughout a network.

Cache control
HTTP defines three basic mechanisms for controlling caches: freshness, validation, and invalidation[5]. Freshness allows a response to be used without re-checking it on the origin server, and can be controlled by both the server and the client. For example, the Expires response header gives a date when the document becomes stale, and the Cache-Control: max-age directive tells the cache how many seconds the response is fresh for. Validation can be used to check whether a cached response is still good after it becomes stale. For example, if the response has a Last-Modified header, a cache can make a conditional request using the If-Modified-Since header to see if it has changed. The ETag (entity tag) mechanism also allows for both strong and weak validation. Invalidation is usually a side effect of another request that passes through the cache. For example, if URL associated with a cached response subsequently gets a POST, PUT or DELETE request, the cached response will be invalidated.

Browser cache
Web browsers cache content on the client machine, in memory and on disk.

Legal issues
In 1998 the DMCA added rules to the United States Code (17 U.S.C. : 512) that relinquishes system operators from copyright liability for the purposes of caching.

Comparison of web caches

Web cache

Name

Type

Operating System

Forward Reverse Mode Mode Yes Yes No Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes

License

ApplianSys CACHEbox Blue Coat ProxySG Nginx

Appliance Appliance Software

Linux SGOS Linux, Unix Windows

Commercial Commercial 2-clause BSD-like Commercial GNU GPL GNU GPL Apache License 2.0 Commercial BSD Commercial

Microsoft Forefront Threat Management Gateway Software Polipo Squid Traffic Server Untangle Varnish WinGate

Software Linux, Unix, Windows Software Linux, Unix, Windows Software Software Software Software Linux, Unix Linux Linux, Unix Windows

Notes

[1] Geoff Huston. "Web Caching" (http:/ / www. cisco. com/ web/ about/ ac123/ ac147/ ac174/ ac199/ about_cisco_ipj_archive_article09186a00800c8903. html). Cisco. The Internet Protocol Journal - Volume 2, No. 3. . Retrieved 2009-09-10. [2] Thomas Shinder. "Understanding Web Caching Concepts for the ISA Firewall" (http:/ / www. isaserver. org/ tutorials/ Understanding-Web-Caching-Concepts-ISA-Firewall. html). . Retrieved 2011-02-27. [3] Jeffrey Erman, Alexandre Gerber, Mohammad T. Hajiaghayi, Dan Pei, Oliver Spatscheck (2008). "Network-Aware Forward Caching" (http:/ / docs. google. com/ viewer?a=v& q=cache:EkauYdDMNR8J:citeseerx. ist. psu. edu/ viewdoc/ download?doi=10. 1. 1. 159. 1786& rep=rep1& type=pdf+ forward+ cache& hl=en& gl=us& pid=bl& srcid=ADGEESjZ1ez6sscAHAlyZdGxWJlwBB_OMo9nrXOshLfOEJSh9F5RrG4O7VyaGOazXNrKHkj5uvaXGSMGX-Xk2-FAVW_PejIRurTYq-HntH5GllpFK sig=AHIEtbQBW0sqZ6kvCd1Ixzl-0BGEkZVw_w). AT&T Labs. . Retrieved 2011-02-27. [4] Multiple (wiki). "Web application/Caching" (http:/ / docforge. com/ wiki/ Web_application/ Caching). Docforge. . Retrieved 2010-03-06. [5] http:/ / ws-rest. org/ files/ 03-Link%20Header-based%20Invalidation%20of%20Caches. pdf

Further reading
Ari Luotonen, Web Proxy Servers (Prentice Hall, 1997) ISBN 0-13-680612-0 Duane Wessels, Web Caching (O'Reilly and Associates, 2001). ISBN 1-56592-536-X Michael Rabinovich and Oliver Spatschak, Web Caching and Replication (Addison Wesley, 2001). ISBN 0-201-61570-3

External links
Caching Tutorial for Web Authors and Webmasters (http://www.mnot.net/cache_docs/) Web Caching and Content Delivery Resources (http://www.web-caching.com) Web Caching (http://www.visolve.com/squid/whitepapers/ViSolve_Web_Caching.pdf), Web caching in general with some references to SQUID Cache control directives demystified (http://palisade.plynt.com/issues/2008Jul/cache-control-attributes/) Explanations, do's and don't

Article Sources and Contributors

Article Sources and Contributors


Web cache Source: http://en.wikipedia.org/w/index.php?oldid=475307623 Contributors: 4th-otaku, A2KS, A876, Achinikh, Alex Smotrov, AlexPlank, Alnokta, Beetstra, Beland, Blashyrk, Blowdart, Booyabazooka, Callmeonnet, Canadian-Bacon, Cchantep, Choi SeongOk, Closedmouth, CosineKitty, Cwolfsheep, Dagman, Deeahbz, DerHexer, Dirkbb, Dmeranda, E9, Earthandmoon, Eeekster, Eekerz, Emilyhawkins, Evil Monkey, Fatespeaks, Fibonacci, Fitoschido, FleetCommand, Fmccown, FreplySpang, Gardar Rurak, GeorgeBills, Ghowett, Gigaboy79, Glutt0niie, Gracenotes, Gskuse, Gurchzilla, Gyanprakashis, Jag123, Janadore, Joco2000, John Vandenberg, JonHarder, Josh Parris, Jyimcse, Keris Rain, Kocio, LeCire, Limon52, LuisOntanon, MER-C, Maghnus, Matt Schwartz, Maxrobbins, Mbenna, Mfloisand, Mikeblas, Mnot, MrOllie, Mydimle, Nikai, Pne, Pnm, Pookipsi, Produke, RB972, Rollier, Schapel, Seven of Nine, Simetrical, Sladen, Slakr, Steventee, Superfelix, Telekid, Thalweg2, The Anome, Thunderbritches, TittoAssini, Tommylommykins, Tony1, Triona, Ts.prasanna, VasilievVV, Vrenator, Weekend68, Wiki alf, Wordwizz, Yworo, Zenohockey, Zeroheure, 118 anonymous edits

License
Creative Commons Attribution-Share Alike 3.0 Unported //creativecommons.org/licenses/by-sa/3.0/

S-ar putea să vă placă și