Sitecore和Cloudflare-个性化问题

发布于 2025-01-21 07:59:26 字数 271 浏览 2 评论 0原文

每当我们在CloudFlare中清除缓存时,我们以某种方式在Sitecore SXA页面上丢失了个性化。这是定期发生的,也发生在子页面上,尤其是(基本上是父页面正确显示所有内容)。这也发生在页脚页面设计中,因为它具有为页脚内部某些组件激活的个性化。

有人知道问题可能是什么吗?就像我说的那样,每当我们清除Cloudflare内的缓存时,问题就会发生。

同样,这始终发生在en-us语言文化中。

Whenever we purge cache in Cloudflare, we somehow lose the personalization on the Sitecore SXA page. This happens regularly and also on the subpages especially (basically the parent page shows everything correctly). This happens also most of the time inside the footer page design, as it has the personalization activated for certain component inside the footer.

Does anyone knows what the issue can be? Like I said the problem happens whenever we purge the cache inside the Cloudflare.

Also, this always happens inside the en-us language culture, nowhere else.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凉城 2025-01-28 07:59:27

没有更多的信息并不容易理解在哪里解决此问题。

在您的应用程序中,您应该尝试禁用缓存以获取静态资产,如果在真正的流量下,您将获得负载。
这样,您将使资源无法缓存,强迫客户检索所有数据(CSS,JS等)。

当您找到使您饥饿的一堆文件(又称引起问题的文件)时,您可以还原默认的到期标题。

如果您不在免费计划中,则可以尝试此操作(如果在Edge上的免费计划最小ttl为2H):

CloudFlare CACHER规则

  1. 设置边缘缓存ttl到30s
  2. 设置浏览器缓存TTL以尊重现有
    标题
  3. 设置的原点缓存控制到ON
  4. 设置的性能

With no more info is not so easy to understand where to fix this issue.

In your application you should try to disable cache for static assets, you will get load if under real heavy traffic then take care.
This way you will make resources not cached forcing clients to retrieve all data (css, js and so on).

When you will find the bunch of files which makes you hungry (aka the files which cause your issue) you can restore default expire headers.

You can try this if you are not on free plan (if are on free plan min TTL on edge is 2h):

Cloudflare cache rule

  1. set edge cache TTL to 30s
  2. set browser cache TTL to respect existing
    headers
  3. set origin cache control to ON
  4. set performance to OFF
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文