Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
anagh-p committed Apr 25, 2017
2 parents 8ec6cdd + f141049 commit 3dc72fb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@ The argument is an associative array with following keys:

1. **publisherId**
2. **cdnTTLs**: Corresponds to Surrogate-Control values.
1. **max-age**: This controls how long the page is considered fresh in the Database.
2. **stale-while-revalidate**: During this period, the page is served from CDN, but updated in the background.
3. **stale-if-error**: During this time, the page is served from CDN in case the backend server crashes for whatever reason.
1. **max-age**: This controls how long the page is considered fresh in the Database.
2. **stale-while-revalidate**: During this period, the page is served from CDN, but updated in the background.
3. **stale-if-error**: During this time, the page is served from CDN in case the backend server crashes for whatever reason.
3. **browserTTLs**: Corresponds to Cache-Control values
1. **max-age**
1. **max-age**
4. **locationId**_(not required for story page)_: home or section-id
5. **storyGroup**_(not required for story page)_: top or stack-id
6. **storiesToCache**:
1. Array of all collections under a key for each of them, if driven through collections.
2. Array of all the stories that have to be cached, if driven through stories.
1. Array of all collections under a key for each of them, if driven through collections.
2. Array of all the stories that have to be cached, if driven through stories.
7. **storiesFrom**_(required for collection driven page)_: collection


Expand Down

0 comments on commit 3dc72fb

Please sign in to comment.