{"action":"created","comment":{"url":"https://api.github.com/repos/rails/rails/pulls/comments/74016002","id":74016002,"diff_hunk":"@@ -512,6 +512,26 @@ class ProductsController < ApplicationController\n end\n ```\n \n+Sometimes we want to cache response (static page) that never gets expired.\n+To achieve that, we can use `http_cache_forever` helper and by doing so browser\n+and proxies will cache it indefinitely.\n+\n+By default cached response will be private. To make it public response, pass","path":"guides/source/caching_with_rails.md","position":8,"original_position":8,"commit_id":"24a273cf7d29dfc26c13d405177258320ef2eb4e","original_commit_id":"24a273cf7d29dfc26c13d405177258320ef2eb4e","user":{"login":"vipulnsward","id":567626,"avatar_url":"https://avatars.githubusercontent.com/u/567626?v=3","gravatar_id":"","url":"https://api.github.com/users/vipulnsward","html_url":"https://github.com/vipulnsward","followers_url":"https://api.github.com/users/vipulnsward/followers","following_url":"https://api.github.com/users/vipulnsward/following{/other_user}","gists_url":"https://api.github.com/users/vipulnsward/gists{/gist_id}","starred_url":"https://api.github.com/users/vipulnsward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vipulnsward/subscriptions","organizations_url":"https://api.github.com/users/vipulnsward/orgs","repos_url":"https://api.github.com/users/vipulnsward/repos","events_url":"https://api.github.com/users/vipulnsward/events{/privacy}","received_events_url":"https://api.github.com/users/vipulnsward/received_events","type":"User","site_admin":false},"body":"`By default cached response will be private, cached only on the user's web browser.`","created_at":"2016-08-09T08:16:03Z","updated_at":"2016-08-09T08:16:03Z","html_url":"https://github.com/rails/rails/pull/25930#discussion_r74016002","pull_request_url":"https://api.github.com/repos/rails/rails/pulls/25930","_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/74016002"},"html":{"href":"https://github.com/rails/rails/pull/25930#discussion_r74016002"},"pull_request":{"href":"https://api.github.com/repos/rails/rails/pulls/25930"}}},"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/25930","id":78570567,"html_url":"https://github.com/rails/rails/pull/25930","diff_url":"https://github.com/rails/rails/pull/25930.diff","patch_url":"https://github.com/rails/rails/pull/25930.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/25930","number":25930,"state":"open","locked":false,"title":"Add documentation for `http_cache_forever`. [ci skip]","user":{"login":"mechanicles","id":77895,"avatar_url":"https://avatars.githubusercontent.com/u/77895?v=3","gravatar_id":"","url":"https://api.github.com/users/mechanicles","html_url":"https://github.com/mechanicles","followers_url":"https://api.github.com/users/mechanicles/followers","following_url":"https://api.github.com/users/mechanicles/following{/other_user}","gists_url":"https://api.github.com/users/mechanicles/gists{/gist_id}","starred_url":"https://api.github.com/users/mechanicles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mechanicles/subscriptions","organizations_url":"https://api.github.com/users/mechanicles/orgs","repos_url":"https://api.github.com/users/mechanicles/repos","events_url":"https://api.github.com/users/mechanicles/events{/privacy}","received_events_url":"https://api.github.com/users/mechanicles/received_events","type":"User","site_admin":false},"body":"Add documentation for `http_cache_forever`\r\n\r\n","created_at":"2016-07-23T11:51:53Z","updated_at":"2016-08-09T08:16:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b92213cf30684f1a8e490b222239bbdeafa63ca","assignee":{"login":"prathamesh-sonpatki","id":621238,"avatar_url":"https://avatars.githubusercontent.com/u/621238?v=3","gravatar_id":"","url":"https://api.github.com/users/prathamesh-sonpatki","html_url":"https://github.com/prathamesh-sonpatki","followers_url":"https://api.github.com/users/prathamesh-sonpatki/followers","following_url":"https://api.github.com/users/prathamesh-sonpatki/following{/other_user}","gists_url":"https://api.github.com/users/prathamesh-sonpatki/gists{/gist_id}","starred_url":"https://api.github.com/users/prathamesh-sonpatki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prathamesh-sonpatki/subscriptions","organizations_url":"https://api.github.com/users/prathamesh-sonpatki/orgs","repos_url":"https://api.github.com/users/prathamesh-sonpatki/repos","events_url":"https://api.github.com/users/prathamesh-sonpatki/events{/privacy}","received_events_url":"https://api.github.com/users/prathamesh-sonpatki/received_events","type":"User","site_admin":false},"assignees":[{"login":"prathamesh-sonpatki","id":621238,"avatar_url":"https://avatars.githubusercontent.com/u/621238?v=3","gravatar_id":"","url":"https://api.github.com/users/prathamesh-sonpatki","html_url":"https://github.com/prathamesh-sonpatki","followers_url":"https://api.github.com/users/prathamesh-sonpatki/followers","following_url":"https://api.github.com/users/prathamesh-sonpatki/following{/other_user}","gists_url":"https://api.github.com/users/prathamesh-sonpatki/gists{/gist_id}","starred_url":"https://api.github.com/users/prathamesh-sonpatki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prathamesh-sonpatki/subscriptions","organizations_url":"https://api.github.com/users/prathamesh-sonpatki/orgs","repos_url":"https://api.github.com/users/prathamesh-sonpatki/repos","events_url":"https://api.github.com/users/prathamesh-sonpatki/events{/privacy}","received_events_url":"https://api.github.com/users/prathamesh-sonpatki/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/25930/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/25930/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/25930/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/24a273cf7d29dfc26c13d405177258320ef2eb4e","head":{"label":"mechanicles:doc-http-cache-forever","ref":"doc-http-cache-forever","sha":"24a273cf7d29dfc26c13d405177258320ef2eb4e","user":{"login":"mechanicles","id":77895,"avatar_url":"https://avatars.githubusercontent.com/u/77895?v=3","gravatar_id":"","url":"https://api.github.com/users/mechanicles","html_url":"https://github.com/mechanicles","followers_url":"https://api.github.com/users/mechanicles/followers","following_url":"https://api.github.com/users/mechanicles/following{/other_user}","gists_url":"https://api.github.com/users/mechanicles/gists{/gist_id}","starred_url":"https://api.github.com/users/mechanicles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mechanicles/subscriptions","organizations_url":"https://api.github.com/users/mechanicles/orgs","repos_url":"https://api.github.com/users/mechanicles/repos","events_url":"https://api.github.com/users/mechanicles/events{/privacy}","received_events_url":"https://api.github.com/users/mechanicles/received_events","type":"User","site_admin":false},"repo":{"id":15770422,"name":"rails","full_name":"mechanicles/rails","owner":{"login":"mechanicles","id":77895,"avatar_url":"https://avatars.githubusercontent.com/u/77895?v=3","gravatar_id":"","url":"https://api.github.com/users/mechanicles","html_url":"https://github.com/mechanicles","followers_url":"https://api.github.com/users/mechanicles/followers","following_url":"https://api.github.com/users/mechanicles/following{/other_user}","gists_url":"https://api.github.com/users/mechanicles/gists{/gist_id}","starred_url":"https://api.github.com/users/mechanicles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mechanicles/subscriptions","organizations_url":"https://api.github.com/users/mechanicles/orgs","repos_url":"https://api.github.com/users/mechanicles/repos","events_url":"https://api.github.com/users/mechanicles/events{/privacy}","received_events_url":"https://api.github.com/users/mechanicles/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mechanicles/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/mechanicles/rails","forks_url":"https://api.github.com/repos/mechanicles/rails/forks","keys_url":"https://api.github.com/repos/mechanicles/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mechanicles/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mechanicles/rails/teams","hooks_url":"https://api.github.com/repos/mechanicles/rails/hooks","issue_events_url":"https://api.github.com/repos/mechanicles/rails/issues/events{/number}","events_url":"https://api.github.com/repos/mechanicles/rails/events","assignees_url":"https://api.github.com/repos/mechanicles/rails/assignees{/user}","branches_url":"https://api.github.com/repos/mechanicles/rails/branches{/branch}","tags_url":"https://api.github.com/repos/mechanicles/rails/tags","blobs_url":"https://api.github.com/repos/mechanicles/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mechanicles/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mechanicles/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/mechanicles/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mechanicles/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/mechanicles/rails/languages","stargazers_url":"https://api.github.com/repos/mechanicles/rails/stargazers","contributors_url":"https://api.github.com/repos/mechanicles/rails/contributors","subscribers_url":"https://api.github.com/repos/mechanicles/rails/subscribers","subscription_url":"https://api.github.com/repos/mechanicles/rails/subscription","commits_url":"https://api.github.com/repos/mechanicles/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/mechanicles/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/mechanicles/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/mechanicles/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/mechanicles/rails/contents/{+path}","compare_url":"https://api.github.com/repos/mechanicles/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mechanicles/rails/merges","archive_url":"https://api.github.com/repos/mechanicles/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mechanicles/rails/downloads","issues_url":"https://api.github.com/repos/mechanicles/rails/issues{/number}","pulls_url":"https://api.github.com/repos/mechanicles/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/mechanicles/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/mechanicles/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mechanicles/rails/labels{/name}","releases_url":"https://api.github.com/repos/mechanicles/rails/releases{/id}","deployments_url":"https://api.github.com/repos/mechanicles/rails/deployments","created_at":"2014-01-09T15:26:57Z","updated_at":"2015-03-29T15:31:57Z","pushed_at":"2016-07-25T02:26:14Z","git_url":"git://github.com/mechanicles/rails.git","ssh_url":"git@github.com:mechanicles/rails.git","clone_url":"https://github.com/mechanicles/rails.git","svn_url":"https://github.com/mechanicles/rails","homepage":"http://rubyonrails.org","size":120168,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rails:master","ref":"master","sha":"1ca571cc472ffea2dfab43ee57d8204e89d5b1a6","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","deployments_url":"https://api.github.com/repos/rails/rails/deployments","created_at":"2008-04-11T02:19:47Z","updated_at":"2016-08-09T08:11:57Z","pushed_at":"2016-08-09T08:06:00Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":338051,"stargazers_count":32317,"watchers_count":32317,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13126,"mirror_url":null,"open_issues_count":1129,"forks":13126,"open_issues":1129,"watchers":32317,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/25930"},"html":{"href":"https://github.com/rails/rails/pull/25930"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/25930"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/25930/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/25930/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/25930/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/24a273cf7d29dfc26c13d405177258320ef2eb4e"}}}}
{"actor":{"display_login":"vipulnsward"}}