• timeout?: number - Time in milliseconds to wait for SSR rendering to happen.单位毫秒,等待 SSR 渲染发生的时间间隔。

  • cache?: boolean - Enable in-memory cache for pre-rendered urls.If disabled, the cache will still be used to temporarily store renders finished after csr fallback in order to serve them with next request only.

启用提前渲染 url 的内存中缓存。如果禁用,仍然会使用缓存来存储回退到 CSR 渲染机制下生成的页面,并服务于且仅服务于下一次到来的请求。

  • cacheSize?: number - Specified number of entries that will be kept in cache, allows to keep memory usage under control.

指定能够存储在缓存里的记录条目数,防止出现 out of memory 错误。

Can also be use when cache option is set to false. It will then limit the number of renders that timeouts and are kept in temporary cache, waiting to be served with next request.

即使 cache 设置为 false,也能够使用 cacheSize 选项。当 cache 为 false 时,cacheSize 可以用来限制临时缓存里的 render 个数,这些 render 都是出现了超时情况,等待下次请求到来时继续服务。

  • concurrency?: number - Limit number of concurrent rendering

  • ttl?: number - Time in milliseconds after prerendered page is becoming stale and should be rendered again.

ttl 时间间隔达到后,之前渲染好的页面被标识为过期状态,需要重新渲染。

  • renderKeyResolver?: (req: Request) => string - Allows overriding default key generator for custom differentiating between rendered pages. By default it uses req.originalUrl.

允许客户自定义渲染页面的标识键。默认情况下,使用字段 req.originalUrl 来标识不同的渲染页面。

  • renderingStrategyResolver?: (req: Request) => RenderingStrategy - Allows defining custom rendering strategy per request

相当于钩子函数,允许根据请求来自定义渲染策略。

  • forcedSsrTimeout?: number - Time in milliseconds to wait for rendering when SSR_ALWAYS render strategy is set for the request.Default value is 60 seconds.

当渲染策略设置成 SSR_ALWAYS 时,渲染的超时时间。默认是 60 秒。

SAP Spartacus 服务器端渲染优化引擎的参数 SsrOptimizationOptions相关推荐

  1. SAP Spartacus 服务器端渲染调试的开发端版本

    我按照这篇文章手动安装 SAP Spartacus 3.3.0版本并启用服务器端渲染 SSR 的介绍,启用了 SAP Spartacus 服务器端渲染,并且按照SAP Spartacus服务器端渲染模 ...

  2. SAP Spartacus 服务器端渲染单步调试步骤之二:在服务器端执行应用程序 Angular 代码

    前文:SAP Spartacus 服务器端渲染单步调试步骤之一:应用程序准备工作 入口: 进入 platform-server.js: 入口: 最终在服务器端执行 bootstrap,输入 Compo ...

  3. SAP Spartacus 服务器端渲染文件 server.js 和构建后的 main.js 对比

    构建之前: 构建之后: 其中 express__WEBPACK_IMPORTED_MODULE_3__ 来自 module uX2x: uX2x 来自 node_modules/express/ind ...

  4. SAP Spartacus 服务器端渲染处理内存泄漏的准则

    开启服务器端渲染(SSR) 的 SAP Spartacus 实例,运行在 CCV2 Pod 里,当下列情况出现时,可能会造成 pod 的重启: resource allocation for SSR ...

  5. SAP Spartacus 服务器端渲染模式下,在 Node.js 服务器端渲染视图的单步调试

    入口:在 express-engine.js 文件的 render 函数设置断点: 进入 platform-server.js: 这个文件就是 SAP Spartacus 开启服务器端渲染之后,pac ...

  6. SAP Spartacus服务器端渲染模式下的调试方法

    在使用本文章介绍的步骤进行SAP Spartacus Storefront在服务器端渲染模式(SSR)下的调试之前,请您确保已经按照如下帮助文档的介绍,已经成功启用了服务器端渲染: https://s ...

  7. SAP Spartacus 服务器端渲染编程规范

    链接:https://sap.github.io/spartacus-docs/server-side-rendering-coding-guidelines 禁止使用只有在浏览器环境下才可用的全局对 ...

  8. SAP Spartacus 服务器端渲染找不到 index 视图的问题

    我基于 SAP Spartacus 源代码级别 4.0 版本进行 SSR 调试时,遇到如下错误:在 dist/storefrontapp 文件夹下面,找不到 index 视图: Error: Fail ...

  9. SAP Spartacus 服务器端渲染单步调试步骤之一:应用程序准备工作

    所有常规请求都用 universal engine 渲染: Index 是静态页面,还得从 browser 文件夹里的资源出发: 读取视图实例: 拿到的 view 实例: 根据请求实例拿到其 key: ...

最新文章

  1. 有向连通图增加多少边构成强联通(hdu3836,poj1236)
  2. ios cpu指令架构
  3. Druid连接池一个设置引发的血案
  4. ZOJ18th省赛 Lucky 7
  5. ProxyFactoryBean(代码)
  6. python热部署_定时任务-Quartz(热部署、冷部署)
  7. 线程同步 线程安全_同步装饰器来替换线程安全类
  8. 3分钟简单了解 prototype 和 __proto__
  9. leetcode 349. Intersection of Two Arrays 1
  10. 比较HTML元素和Native组件的区别
  11. 什么样的生意一本万利?
  12. 【预测模型】基于粒子群算法优化DBN深度置信网络实现数据预测matlab代码
  13. 如何利用FME转换空间坐标系
  14. Linux环境下安装Calibre 源代码编译
  15. 语言模型及RNN模型
  16. 2022.04.17-高宝琪毕设阶段性汇报
  17. 全球及中国人工智能投诉管理行业发展趋势及投资策略分析报告2022-2028年
  18. 界面布局上大胆突破,关注到的细分领域
  19. 手机便签内容修改后可以恢复吗?
  20. ENVI5.6保姆式安装教程,超详细;附PoJie版安装包

热门文章

  1. iOS10 NSURLErrorDomain Code 1200
  2. Bootstrap学习3
  3. 《从零开始学Swift》学习笔记(Day 20)——函数中参数的传递引用
  4. Python入门之中文乱码
  5. 利用jsonp实现跨域登陆
  6. 数据中心扩张和产能计划
  7. Android版同步工具豌豆荚实测 电脑给手机按软件 截图
  8. 主/辅DNS服务器详细配置
  9. MySQL查询更新所有满足条件的数据
  10. AngularJs出现错误Error: [ng:areq]