mrduc Posted July 28, 2014 Share Posted July 28, 2014 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! Link to comment Share on other sites More sharing options...
Dh42 Posted July 28, 2014 Share Posted July 28, 2014 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. 1 Link to comment Share on other sites More sharing options...
mrduc Posted July 28, 2014 Author Share Posted July 28, 2014 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 More sharing options...
Dh42 Posted July 28, 2014 Share Posted July 28, 2014 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 More sharing options...
mrduc Posted July 28, 2014 Author Share Posted July 28, 2014 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 More sharing options...
El Patron Posted July 28, 2014 Share Posted July 28, 2014 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 More sharing options...
Dh42 Posted July 28, 2014 Share Posted July 28, 2014 You can also do it like this, http://blog.dh42.com/discrete-prestashop-debugging/ where just you can see it. 2 Link to comment Share on other sites More sharing options...
El Patron Posted July 28, 2014 Share Posted July 28, 2014 You can also do it like this, http://blog.dh42.com/discrete-prestashop-debugging/ where just you can see it. follow dh42's blog post on this, it's the perfect way to do profiling. Link to comment Share on other sites More sharing options...
parsifal Posted July 29, 2014 Share Posted July 29, 2014 You can also do it like this, http://blog.dh42.com/discrete-prestashop-debugging/ where just you can see it. Thanks for the tip Dh42! btw, I think you meant "discreet" in the article's title. Link to comment Share on other sites More sharing options...
mrduc Posted July 29, 2014 Author Share Posted July 29, 2014 (edited) Thanks all, It's very helpful for me. There are some bugs when I turn on "_PS_DEBUG_PROFILING_" Edited July 29, 2014 by mrduc (see edit history) Link to comment Share on other sites More sharing options...
mrduc Posted August 1, 2014 Author Share Posted August 1, 2014 Hi dh42, for fastest prestashop, I read your article at http://blog.dh42.com/fastest-prestashop/ but in "Lets load files faster" section I don't know how to do that because my server using nginx, has not varnish. Can you help me config for nginx? Thank you. 1 Link to comment Share on other sites More sharing options...
Recommended Posts