File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,20 @@ const resetPrerenderCloud = () => {
5454 // all of the JavaScript will be gone
5555 // prerendercloud.set("removeScriptTags", true);
5656
57- // 7. see all configuration options here: https://github.com/sanfrancesco/prerendercloud-nodejs
57+ // 7. disableServerCache
58+ // Disable the cache on prerender.cloud (default is enabled with 5 minute duration).
59+ // It probably makes sense to disable the prerender.cloud server cache
60+ // since CloudFront is caching things for you.
61+ // Pros/Cons of disabling prerender.cloud server cache:
62+ // Pros
63+ // - when you invalidate CloudFront, the next page load will be guaranteed fresh
64+ // Cons
65+ // - when you invalid CloudFront each page load will require a new prerender call
66+ // (so if you regularly invalidate even if the content hasn't changed, you're slowing
67+ // things down unnecessarily)
68+ // prerendercloud.set('disableServerCache', true);
69+
70+ // 8. see all configuration options here: https://github.com/sanfrancesco/prerendercloud-nodejs
5871
5972 // for tests
6073 if ( prerenderCloudOption ) prerenderCloudOption ( prerendercloud ) ;
You can’t perform that action at this time.
0 commit comments