{"action":"created","comment":{"url":"https://api.github.com/repos/fastly/fastly-magento2/pulls/comments/72982050","id":72982050,"diff_hunk":"@@ -0,0 +1,161 @@\n+# Configuring the Fastly_Cdn Module\n+\n+This document describes how to configure the Fastly_Cdn module and connect it\n+to Fastly's CDN services.\n+\n+## Contents\n+\n+* [Prerequisites](#prerequisites)\n+* [Configure the Fastly Service](#configure-the-fastly-service)\n+* [Basic Configuration](#configure-the-module)\n+* [Further Configuration Options](#further-configuration-options)\n+\n+## Prerequisites\n+\n+To proceed with configuration you will need to have\n+[signed up for Fastly's service](https://www.fastly.com/signup). You will need\n+the API key (or a user key with purge access). Details of how to find these\n+are kept in [Fastly's documentation](https://docs.fastly.com/guides/account-management-and-security/finding-and-managing-your-account-info).\n+\n+## Configure the Fastly Service\n+\n+To start configuring the Fastly service for use with Magento ensure that you\n+have [signed up](https://www.fastly.com/signup) for the service. Once you have\n+confirmed the account and logged in the Fastly application will take you to a\n+wizard to configure your first service. This is further documented on [Fastly's documentation](https://docs.fastly.com/guides/basic-setup/sign-up-and-create-your-first-service).\n+\n+You will need to email Fastly's support team to\n+[request access](https://docs.fastly.com/guides/vcl/uploading-custom-vcl) to\n+upload VCL to your account.\n+Once this is enabled refresh the Fastly application and navigate to the VCL\n+page in the latest unlocked version of the service. Once there upload the\n+[Fastly_Cdn VCL](../etc/fastl.vcl) as the main VCL. Review the generated VCL\n+to ensure that it is correctly implemented. Then activate the new version.\n+\n+## Configure the Module\n+\n+This section will describe how to input the API key and service ID into the\n+Fastly_Cdn module. It assumes that the module has already been installed\n+without error. If not please see [installing the module](INSTALLATION.md) for\n+details of how to do this.\n+\n+To enter the credentials for the Fastly_Cdn module to use open a browser and\n+log in to the admin section of the Magento server. Navigate to:\n+\n+```\n+Stores > Configuration > Advanced > System\n+```\n+\n+Expand the 'Full Page Cache' section then choose 'Fastly CDN' in the 'Caching\n+Application' dropdown.\n+\n+Adjust the TTL for public content to suit the needs of the server. (This value\n+is in seconds.)\n+\n+Expand the 'Fastly Configuration' section to enter the remaining necessary\n+details.\n+\n+Leave the 'Fastly API Endpoint' set as the default value.\n+\n+In the 'Fastly Service ID' enter the service ID that was configured when\n+signing up for Fastly's services [above](#configure-the-fastly-service). Then\n+in 'Fastly API key' enter the key.\n+\n+This is enough for a 'good first test', but proceed to\n+[further configuration](#further-configuration-options) to change other\n+settings, otherwise click 'Save Config' at the top of the page and proceed to\n+testing.\n+\n+## Further Configuration Options\n+\n+### Stale content delivery time\n+\n+Fastly can serve stale content even if the TTL has expired. During the time it\n+takes Fastly to fetch the fresh content from Magento it can serve stale content\n+from its cache. This setting defines the time in seconds to allow Fastly to\n+serve stale content after the \"normal\" TTL has expired.\n+\n+### Stale content delivery time in case of backend error\n+\n+This setting defines the time in seconds that stale content can be delivered in\n+case the backend is down or cannot respond properly.\n+\n+### Purge category\n+\n+This option binds automatic purge of category (Fastly) cache with is update\n+event. If you always want up-to-date category information on  front-end set the\n+option value to \"Yes\" and category cache will be invalidated each time a\n+category update occurs.\n+\n+### Purge product\n+\n+This option binds purge of product (Fastly) cache with product and product's\n+stock update. If set to \"Yes\" product pages cache is invalidated each time\n+product update or product's stock update occurs.\n+\n+Additionally, if \"Purge Category\" option is set to \"Yes\" this triggers\n+product's categories cache purge on product/product stock update. This option\n+is useful to keep product pages and categories up-to-date when product becomes\n+out of stock (i.e. when the last item purchased by a customer).\n+\n+### Purge CMS page\n+\n+This option binds automatic purge of CMS page (Fastly) cache with its update\n+event. If set to \"Yes\" CMS page cache is invalidated each time CMS page update\n+event occurs (i.e. CMS page content update via Magento admin).\n+\n+### Use Soft Purge\n+\n+Using soft purge will not remove the content immediately from Fastly's cache\n+but mark it as stale. In combination with the stale timings your customers will\n+be serverd stale content very fast while Fastly is updating the content in the","path":"Documentation/CONFIGURATION.md","position":111,"original_position":111,"commit_id":"f08a6cc761485e432ffcbade874fefb4957d4003","original_commit_id":"f08a6cc761485e432ffcbade874fefb4957d4003","user":{"login":"acme","id":19988,"avatar_url":"https://avatars.githubusercontent.com/u/19988?v=3","gravatar_id":"","url":"https://api.github.com/users/acme","html_url":"https://github.com/acme","followers_url":"https://api.github.com/users/acme/followers","following_url":"https://api.github.com/users/acme/following{/other_user}","gists_url":"https://api.github.com/users/acme/gists{/gist_id}","starred_url":"https://api.github.com/users/acme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acme/subscriptions","organizations_url":"https://api.github.com/users/acme/orgs","repos_url":"https://api.github.com/users/acme/repos","events_url":"https://api.github.com/users/acme/events{/privacy}","received_events_url":"https://api.github.com/users/acme/received_events","type":"User","site_admin":false},"body":"`serverd` typo","created_at":"2016-08-01T13:59:22Z","updated_at":"2016-08-01T13:59:22Z","html_url":"https://github.com/fastly/fastly-magento2/pull/14#discussion_r72982050","pull_request_url":"https://api.github.com/repos/fastly/fastly-magento2/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/fastly/fastly-magento2/pulls/comments/72982050"},"html":{"href":"https://github.com/fastly/fastly-magento2/pull/14#discussion_r72982050"},"pull_request":{"href":"https://api.github.com/repos/fastly/fastly-magento2/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/fastly/fastly-magento2/pulls/14","id":79570124,"html_url":"https://github.com/fastly/fastly-magento2/pull/14","diff_url":"https://github.com/fastly/fastly-magento2/pull/14.diff","patch_url":"https://github.com/fastly/fastly-magento2/pull/14.patch","issue_url":"https://api.github.com/repos/fastly/fastly-magento2/issues/14","number":14,"state":"open","locked":false,"title":"1.0.6 readme update","user":{"login":"jondade","id":243636,"avatar_url":"https://avatars.githubusercontent.com/u/243636?v=3","gravatar_id":"","url":"https://api.github.com/users/jondade","html_url":"https://github.com/jondade","followers_url":"https://api.github.com/users/jondade/followers","following_url":"https://api.github.com/users/jondade/following{/other_user}","gists_url":"https://api.github.com/users/jondade/gists{/gist_id}","starred_url":"https://api.github.com/users/jondade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jondade/subscriptions","organizations_url":"https://api.github.com/users/jondade/orgs","repos_url":"https://api.github.com/users/jondade/repos","events_url":"https://api.github.com/users/jondade/events{/privacy}","received_events_url":"https://api.github.com/users/jondade/received_events","type":"User","site_admin":false},"body":"A reworking of the documentation to break them up into smaller chunks. Hopefully easier to digest that way.","created_at":"2016-08-01T13:42:08Z","updated_at":"2016-08-01T13:59:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c45c5d11a6f95caf6079464e7e6316ac1c9d9a6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fastly/fastly-magento2/pulls/14/commits","review_comments_url":"https://api.github.com/repos/fastly/fastly-magento2/pulls/14/comments","review_comment_url":"https://api.github.com/repos/fastly/fastly-magento2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fastly/fastly-magento2/issues/14/comments","statuses_url":"https://api.github.com/repos/fastly/fastly-magento2/statuses/f08a6cc761485e432ffcbade874fefb4957d4003","head":{"label":"fastly:1.0.6-readme-update","ref":"1.0.6-readme-update","sha":"f08a6cc761485e432ffcbade874fefb4957d4003","user":{"login":"fastly","id":777070,"avatar_url":"https://avatars.githubusercontent.com/u/777070?v=3","gravatar_id":"","url":"https://api.github.com/users/fastly","html_url":"https://github.com/fastly","followers_url":"https://api.github.com/users/fastly/followers","following_url":"https://api.github.com/users/fastly/following{/other_user}","gists_url":"https://api.github.com/users/fastly/gists{/gist_id}","starred_url":"https://api.github.com/users/fastly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastly/subscriptions","organizations_url":"https://api.github.com/users/fastly/orgs","repos_url":"https://api.github.com/users/fastly/repos","events_url":"https://api.github.com/users/fastly/events{/privacy}","received_events_url":"https://api.github.com/users/fastly/received_events","type":"Organization","site_admin":false},"repo":{"id":52321200,"name":"fastly-magento2","full_name":"fastly/fastly-magento2","owner":{"login":"fastly","id":777070,"avatar_url":"https://avatars.githubusercontent.com/u/777070?v=3","gravatar_id":"","url":"https://api.github.com/users/fastly","html_url":"https://github.com/fastly","followers_url":"https://api.github.com/users/fastly/followers","following_url":"https://api.github.com/users/fastly/following{/other_user}","gists_url":"https://api.github.com/users/fastly/gists{/gist_id}","starred_url":"https://api.github.com/users/fastly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastly/subscriptions","organizations_url":"https://api.github.com/users/fastly/orgs","repos_url":"https://api.github.com/users/fastly/repos","events_url":"https://api.github.com/users/fastly/events{/privacy}","received_events_url":"https://api.github.com/users/fastly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fastly/fastly-magento2","description":"Module for integrating Fastly CDN with Magento 2 installations","fork":false,"url":"https://api.github.com/repos/fastly/fastly-magento2","forks_url":"https://api.github.com/repos/fastly/fastly-magento2/forks","keys_url":"https://api.github.com/repos/fastly/fastly-magento2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastly/fastly-magento2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastly/fastly-magento2/teams","hooks_url":"https://api.github.com/repos/fastly/fastly-magento2/hooks","issue_events_url":"https://api.github.com/repos/fastly/fastly-magento2/issues/events{/number}","events_url":"https://api.github.com/repos/fastly/fastly-magento2/events","assignees_url":"https://api.github.com/repos/fastly/fastly-magento2/assignees{/user}","branches_url":"https://api.github.com/repos/fastly/fastly-magento2/branches{/branch}","tags_url":"https://api.github.com/repos/fastly/fastly-magento2/tags","blobs_url":"https://api.github.com/repos/fastly/fastly-magento2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastly/fastly-magento2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastly/fastly-magento2/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastly/fastly-magento2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastly/fastly-magento2/statuses/{sha}","languages_url":"https://api.github.com/repos/fastly/fastly-magento2/languages","stargazers_url":"https://api.github.com/repos/fastly/fastly-magento2/stargazers","contributors_url":"https://api.github.com/repos/fastly/fastly-magento2/contributors","subscribers_url":"https://api.github.com/repos/fastly/fastly-magento2/subscribers","subscription_url":"https://api.github.com/repos/fastly/fastly-magento2/subscription","commits_url":"https://api.github.com/repos/fastly/fastly-magento2/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastly/fastly-magento2/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastly/fastly-magento2/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastly/fastly-magento2/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastly/fastly-magento2/contents/{+path}","compare_url":"https://api.github.com/repos/fastly/fastly-magento2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastly/fastly-magento2/merges","archive_url":"https://api.github.com/repos/fastly/fastly-magento2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastly/fastly-magento2/downloads","issues_url":"https://api.github.com/repos/fastly/fastly-magento2/issues{/number}","pulls_url":"https://api.github.com/repos/fastly/fastly-magento2/pulls{/number}","milestones_url":"https://api.github.com/repos/fastly/fastly-magento2/milestones{/number}","notifications_url":"https://api.github.com/repos/fastly/fastly-magento2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastly/fastly-magento2/labels{/name}","releases_url":"https://api.github.com/repos/fastly/fastly-magento2/releases{/id}","deployments_url":"https://api.github.com/repos/fastly/fastly-magento2/deployments","created_at":"2016-02-23T01:54:55Z","updated_at":"2016-07-11T09:39:25Z","pushed_at":"2016-08-01T13:47:48Z","git_url":"git://github.com/fastly/fastly-magento2.git","ssh_url":"git@github.com:fastly/fastly-magento2.git","clone_url":"https://github.com/fastly/fastly-magento2.git","svn_url":"https://github.com/fastly/fastly-magento2","homepage":"","size":85,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":5,"default_branch":"master"}},"base":{"label":"fastly:master","ref":"master","sha":"f31c57199cd128db00af0ac2c7d2ea13dc2901c7","user":{"login":"fastly","id":777070,"avatar_url":"https://avatars.githubusercontent.com/u/777070?v=3","gravatar_id":"","url":"https://api.github.com/users/fastly","html_url":"https://github.com/fastly","followers_url":"https://api.github.com/users/fastly/followers","following_url":"https://api.github.com/users/fastly/following{/other_user}","gists_url":"https://api.github.com/users/fastly/gists{/gist_id}","starred_url":"https://api.github.com/users/fastly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastly/subscriptions","organizations_url":"https://api.github.com/users/fastly/orgs","repos_url":"https://api.github.com/users/fastly/repos","events_url":"https://api.github.com/users/fastly/events{/privacy}","received_events_url":"https://api.github.com/users/fastly/received_events","type":"Organization","site_admin":false},"repo":{"id":52321200,"name":"fastly-magento2","full_name":"fastly/fastly-magento2","owner":{"login":"fastly","id":777070,"avatar_url":"https://avatars.githubusercontent.com/u/777070?v=3","gravatar_id":"","url":"https://api.github.com/users/fastly","html_url":"https://github.com/fastly","followers_url":"https://api.github.com/users/fastly/followers","following_url":"https://api.github.com/users/fastly/following{/other_user}","gists_url":"https://api.github.com/users/fastly/gists{/gist_id}","starred_url":"https://api.github.com/users/fastly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastly/subscriptions","organizations_url":"https://api.github.com/users/fastly/orgs","repos_url":"https://api.github.com/users/fastly/repos","events_url":"https://api.github.com/users/fastly/events{/privacy}","received_events_url":"https://api.github.com/users/fastly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fastly/fastly-magento2","description":"Module for integrating Fastly CDN with Magento 2 installations","fork":false,"url":"https://api.github.com/repos/fastly/fastly-magento2","forks_url":"https://api.github.com/repos/fastly/fastly-magento2/forks","keys_url":"https://api.github.com/repos/fastly/fastly-magento2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastly/fastly-magento2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastly/fastly-magento2/teams","hooks_url":"https://api.github.com/repos/fastly/fastly-magento2/hooks","issue_events_url":"https://api.github.com/repos/fastly/fastly-magento2/issues/events{/number}","events_url":"https://api.github.com/repos/fastly/fastly-magento2/events","assignees_url":"https://api.github.com/repos/fastly/fastly-magento2/assignees{/user}","branches_url":"https://api.github.com/repos/fastly/fastly-magento2/branches{/branch}","tags_url":"https://api.github.com/repos/fastly/fastly-magento2/tags","blobs_url":"https://api.github.com/repos/fastly/fastly-magento2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastly/fastly-magento2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastly/fastly-magento2/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastly/fastly-magento2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastly/fastly-magento2/statuses/{sha}","languages_url":"https://api.github.com/repos/fastly/fastly-magento2/languages","stargazers_url":"https://api.github.com/repos/fastly/fastly-magento2/stargazers","contributors_url":"https://api.github.com/repos/fastly/fastly-magento2/contributors","subscribers_url":"https://api.github.com/repos/fastly/fastly-magento2/subscribers","subscription_url":"https://api.github.com/repos/fastly/fastly-magento2/subscription","commits_url":"https://api.github.com/repos/fastly/fastly-magento2/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastly/fastly-magento2/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastly/fastly-magento2/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastly/fastly-magento2/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastly/fastly-magento2/contents/{+path}","compare_url":"https://api.github.com/repos/fastly/fastly-magento2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastly/fastly-magento2/merges","archive_url":"https://api.github.com/repos/fastly/fastly-magento2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastly/fastly-magento2/downloads","issues_url":"https://api.github.com/repos/fastly/fastly-magento2/issues{/number}","pulls_url":"https://api.github.com/repos/fastly/fastly-magento2/pulls{/number}","milestones_url":"https://api.github.com/repos/fastly/fastly-magento2/milestones{/number}","notifications_url":"https://api.github.com/repos/fastly/fastly-magento2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastly/fastly-magento2/labels{/name}","releases_url":"https://api.github.com/repos/fastly/fastly-magento2/releases{/id}","deployments_url":"https://api.github.com/repos/fastly/fastly-magento2/deployments","created_at":"2016-02-23T01:54:55Z","updated_at":"2016-07-11T09:39:25Z","pushed_at":"2016-08-01T13:47:48Z","git_url":"git://github.com/fastly/fastly-magento2.git","ssh_url":"git@github.com:fastly/fastly-magento2.git","clone_url":"https://github.com/fastly/fastly-magento2.git","svn_url":"https://github.com/fastly/fastly-magento2","homepage":"","size":85,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fastly/fastly-magento2/pulls/14"},"html":{"href":"https://github.com/fastly/fastly-magento2/pull/14"},"issue":{"href":"https://api.github.com/repos/fastly/fastly-magento2/issues/14"},"comments":{"href":"https://api.github.com/repos/fastly/fastly-magento2/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/fastly/fastly-magento2/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/fastly/fastly-magento2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fastly/fastly-magento2/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/fastly/fastly-magento2/statuses/f08a6cc761485e432ffcbade874fefb4957d4003"}}}}
{"actor":{"display_login":"acme"}}