Content deleted Content added
m Reverted 1 edit by 94.204.61.149 (talk) to last revision by ChrisWx |
m Reverted edit by 2806:370:9B50:D82A:5970:3DDB:9A23:B556 (talk) to last version by Bruce1ee |
||
(32 intermediate revisions by 21 users not shown) | |||
Line 1:
{{short description|System for optimizing the Web}}
A '''
==Parts of the system==
===Forward and reverse===
A forward cache is a cache outside the [[web server]]'s network, e.g. in the client's [[web browser]], in an [[ISP]], or within a corporate network.
A reverse cache sits in front of one or more web servers, accelerating requests from the Internet and reducing peak server load. This is usually a [[content delivery network]] (CDN) that retains copies of web content at various points throughout a network.
===HTTP options===
The
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
Invalidation is usually a side effect of another request that passes through the cache. For example, if a URL associated with a cached response subsequently gets a POST, PUT or DELETE request, the cached response will be invalidated.
Line 21:
==Legality==
In 1998, the [[Digital Millennium Copyright Act]] added rules to the
==Server-side software==
|