首页>文档>故障排除>CSSHero与CloudFlare(CSS Hero and CloudFlare)

此组别内的文章

需要支持?

如果通过文档没办法解决您的问题,请提交工单获取我们的支持!

CSSHero与CloudFlare(CSS Hero and CloudFlare)

CSSHero和CloudFlare可能有一些问题。我们确实有一些解决不相容问题的建议:
1.)创建一个“禁用性能”页面规则,如果您的URL包含“csshero”,除其他外,该规则将禁用Cloudflare。要使页面规则正常工作,您可以添加:https://www.yourdomain.com/*csshero*,并将“youdomain.com”替换为您的实际域。
2.)当我们确定“https://www.yourdomain.com”要运行该页面规则时,我们需要重新路由“https://yourdomain.com”、“http://www.yourdomain.com”和“http://yourdomain.com”,这样这些调用也就达到了禁用性能规则。为此,我们在Cloudflare中创建了一个301重定向页面规则,其中包含“http://*yourdomain.com/*”转到“https://www.yourdomain.com/$1”。
CloudFlare现在将切换到https://www.yourdomain.com的任何其他类型的yourdomain.com调用,然后识别其中包含“csshero”的任何url。如果是的话,Cloudflare会自动关闭火箭装载器、小型化等等,因此不再需要手动关闭Cloudflare或其火箭装载器。除此之外,第二个页面规则将改善搜索引擎优化,因为它阻止机器人索引“双内容”,因为WWW和无WWW版本。
此外,我们还可以建议完全禁用火箭装载器功能。


CSS Hero and CloudFlare can have some issues. We do have some recommendations for solving the incompatibility:
1.) Create a “disable performance” page rule that among others deactivates Cloudflare if your URL contains “csshero”. For the page rule to work you add: https://www.yourdomain.com/*csshero* and replace “yourdomain.com” with your actual domain.
2.) As we determined “https://www.yourdomain.com” to run through that page rule we need to re-route “https://yourdomain.com”, “http://www.yourdomain.com” and “http://yourdomain.com” so these calls hit the disable performance rule, too. To accomplish that we create a 301-redirect page rule in Cloudflare that has “http://*yourdomain.com/*” go to “https://www.yourdomain.com/$1”
Cloudflare will now switch any other kind of yourdomain.com call to https://www.yourdomain.com and then recognize any URL that carries “csshero” in it. If so, Cloudflare switches off RocketLoader, Minification, etc. automatically so no need to deactivate Cloudflare or its RocketLoader manually anymore. Beyond that the second page rule will improve SEO as it keeps robots from indexing “double content” because of www and no-www versions.
Besides that, we can furthermore suggest to disable the rocket-loader feature altogether.

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索