Compare Revisions
HTTP caching
Revision 1142099:
Revision 1142099 by fscholz on
Revision 1142905:
Revision 1142905 by RosevearDev on
- Title:
- HTTP caching
- HTTP caching
- Slug:
- Web/HTTP/Caching
- Web/HTTP/Caching
- Tags:
- Caching, Guide, HTTP
- "Caching" "Guide" "HTTP"
- Comment:
- Revert to revision of 2016-08-22 06:34:08 by anthony-geoghegan
- Corrected grammar
- Content:
-
Revision 1142099 Revision 1142905 n 23 <img alt="What a cache provide, advantages/disadvantages of n 23 <img alt="What a cache provide, advantages/disadvantages of > shared/private caches." src="https://mdn.mozillademos.org/files/ > shared/private caches." src="https://mdn.mozillademos.org/files/ > 13777/HTTPCachtType.png" style="height: 573px; width: 910px;"> > 13777/HTTPCachtType.png" style="height:573px; width:910px"> n 100 The most important directive here is "<code>max-age=<sec n 100 The most important directive here is "<code>max-age=<sec > onds></code>" which the maximum amount of time a resource will > onds></code>" which is the maximum amount of time a resource w > be considered fresh. Contrary to {{HTTPHeader("Expires")}}, this > ill be considered fresh. Contrary to {{HTTPHeader("Expires")}}, t > directive is relative to the time of the request. For the files > his directive is relative to the time of the request. For the fil > in the application that will not change, you can usually add aggr > es in the application that will not change, you can usually add a > essive caching. This includes static files such as images, CSS fi > ggressive caching. This includes static files such as images, CSS > les and JavaScript files, for example. > files and JavaScript files, for example. n 133 <img alt="Show how a proxy cache acts when a doc is not cac n 133 <img alt="Show how a proxy cache acts when a doc is not cac > he, in the cache and fresh, in the cache and stale." src="https:/ > he, in the cache and fresh, in the cache and stale." src="https:/ > /mdn.mozillademos.org/files/13771/HTTPStaleness.png" style="heigh > /mdn.mozillademos.org/files/13771/HTTPStaleness.png" style="heigh > t: 910px; width: 822px;"> > t:910px; width:822px"> t 194 <img alt="The Vary header leads cache to use more HTTP head t 194 <img alt="The Vary header leads cache to use more HTTP head > ers as key for the cache." src="https://mdn.mozillademos.org/file > ers as key for the cache." src="https://mdn.mozillademos.org/file > s/13769/HTTPVary.png" style="height: 817px; width: 752px;"> > s/13769/HTTPVary.png" style="height:817px; width:752px">