@@ -11,6 +11,9 @@ files that the web server can serve directly:
11112 . Its response is calculated and stored in a file _ F_ .
12123 . Next time _ E_ is requested, the web server sends _ F_ directly.
1313
14+ That applies only to GET or HEAD requests whose reponse code is 200, the rest
15+ are ignored.
16+
1417Unlike caching proxies or other more sophisticated setups, page caching results
1518in a dramatic speed up while being dead simple at the same time. Awesome
1619cost/benefit.
@@ -23,10 +26,9 @@ This technique, however, is only suitable for pages that do not need to go
2326through your Rails stack, precisely. For example, content management systems
2427like wikis have typically many pages that are a great fit for this approach, but
2528account-based systems where people log in and manipulate their own data are
26- often less likely candidates. As a use case you can check, the [ application that
27- gives credit to contributors to Ruby on
28- Rails] ( https://contributors.rubyonrails.org/ ) makes heavy use of page caching.
29- Its source code is [ here] ( https://github.com/rails/rails-contributors ) .
29+ often less likely candidates. As a use case you can check, [ Rails
30+ Contributors] ( https://contributors.rubyonrails.org/ ) makes heavy use of page
31+ caching. Its source code is [ here] ( https://github.com/rails/rails-contributors ) .
3032
3133It is not all or nothing, though, in HTML cached pages JavaScript can still
3234tweak details here and there dynamically as a trade-off.
0 commit comments