如何从prestashop 1.5中的无cookie域中解决投放静态内容的问题? [英] How to solve the serve static content from a cookieless domain in prestashop 1.5?

查看:102
本文介绍了如何从prestashop 1.5中的无cookie域中解决投放静态内容的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在gtmetrix.com上测试了我的网站,它向我显示了以下错误,以改善我的网站yslow scrore.

I test my website on gtmetrix.com it show me the following error to improve my website yslow scrore.

从无cookie的域中提供静态内容

如何解决此错误?

推荐答案

您应该创建一些子域,例如:media1.example.commedia2.example.commedia3.example.com.

You should create some subdomains for example: media1.example.com, media2.example.com, media3.example.com.

配置这些子域,使其像您的主域一样指向您的网站.

Configure those subdomains to point to your website as your main domain does.

在Prestashop后台中,转到Performances,然后在media区域中注册新的内容域.

In Prestashop backoffice go to Performances and register your new content domains in the media area.

这些域将仅用于提供静态内容,并且永远不会被分配cookie.

Those domains will only be used to serve static content and will never be assigned cookies.

这篇关于如何从prestashop 1.5中的无cookie域中解决投放静态内容的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆