Jump to content

Serve static content from a cookieless domain


Recommended Posts

Hello!

 

I have a problem with Serve static content from a cookieless domain

I test my site on http://gtmetrix.com/ and I received "Use a Content Delivery Network (CDN), Use cookie-free domains, Configure entity tags (ETags)" are F(0). I don't know how to fix it. My site is http://www.lesbonsoutils.fr/ and I used CDN service of OVH. 

Please help me.

Thanks!

post-731659-0-40318800-1406519953_thumb.png

post-731659-0-37958100-1406519963_thumb.png

Link to comment
Share on other sites

The CDN service can strip the cookies usually. Your site has more problems than those listed. Those thing should help a bit, but it still takes 15 seconds for your site to load, I am thinking you might need to upgrade your hosting account. 

  • Like 1
Link to comment
Share on other sites

The CDN service can strip the cookies usually. Your site has more problems than those listed. Those thing should help a bit, but it still takes 15 seconds for your site to load, I am thinking you might need to upgrade your hosting account. 

 

Thanks for your answer but before I upgrade my hosting account, I want to fix some problems in my question

Link to comment
Share on other sites

Ask your cdn provider if they can strip the cookies. I can tell you that cloudflare, maxcdn, and metacdn cannot strip the cookies. If you merge this pull request, https://github.com/PrestaShop/PrestaShop/pull/1907 you can strip the etags when the htaccess is generated. As for using a content delivery network, you are already using one it sounds like. You can sign up for an account at gtmetrix and add your cdn to the whitelist. 

Link to comment
Share on other sites

Ask your cdn provider if they can strip the cookies. I can tell you that cloudflare, maxcdn, and metacdn cannot strip the cookies. If you merge this pull request, https://github.com/PrestaShop/PrestaShop/pull/1907 you can strip the etags when the htaccess is generated. As for using a content delivery network, you are already using one it sounds like. You can sign up for an account at gtmetrix and add your cdn to the whitelist. 

 

Thank you so much. I will ask my cdn provider

Link to comment
Share on other sites

to help deteremine slow down

 

find file config/defines.inc.php

 

change:

define('_PS_DEBUG_PROFILING_', false);
to
define('_PS_DEBUG_PROFILING_', true);

visit problem page(s), scroll down to get  PrestaShop debug/profiling info.

 

note: when 'true' all visitors  will see this data.

Link to comment
Share on other sites

×
×
  • Create New...