adamus007p Posted May 26, 2012 Share Posted May 26, 2012 (edited) Since presta 1.4.x PS allow to use Media servers (used only with CCC) I was trying to find on the forum/Internet/docs answer how to configure it, how to use it. http://docs.prestash...ces-Performance the explanation of CCC server is: Media servers Enable you to redirect part of your traffic (media files, for instance) to other servers under your control, through other domains or sub-domains. I it not enough to me, so that is my question it, how it works and how to configure it? 1. Do i need clone my shop (all data and mysql database) on 2nd server and point there other domain or subdomain? 2. Do i need clone my shop (only data or some part of data, like img) on 2nd server and point there other domain or subdomain? 3. Can I point other domain or subdomain to my existing shop and it will increase also speed of loading my shop? Please tell me how it is works and how to configure it. Edited May 26, 2012 by adamus007p (see edit history) Link to comment Share on other sites More sharing options...
Asenar Posted May 29, 2012 Share Posted May 29, 2012 Hi, maybe you can find additional information here : http://www.nethercottconstructions.com/en/content/12-serve-static-content-from-a-cookieless-domain 1) media server is for static content (no need to clone sql) 2) I think only img and js 3) I would say probably, but not sure a 100% Link to comment Share on other sites More sharing options...
phrasespot Posted May 29, 2012 Share Posted May 29, 2012 2) I think only img and js You think? Wow, a PrestaShop feature even a PrestaShop developer is not sure about. What chance do us mere mortals have? Link to comment Share on other sites More sharing options...
adamus007p Posted May 30, 2012 Author Share Posted May 30, 2012 (edited) Michael was very helpful for me. Thank you Michael. I wrote email to 8 person who touched this module in SVN. I just serched in SVN by CCC and found people who touched this module. Now I am waiting for response. I sent emails yesterday, no response till now. Only I have got response from Michael who is more engaged in SQL not in pure module. Thank you Michael for response. It is quite impossible that nobody did not answer me. My email went to SPAM or my question has beed ignored or i don't know i need to buy beers Maybe you Michael could help something in this issue internally? PS. I saw this video and other and like he said he is not sure how it is works. I think that nobody know... I was searching in: Internet Prestashop forum Prestashop documentations Edited May 30, 2012 by adamus007p (see edit history) Link to comment Share on other sites More sharing options...
Frank van der Voort Posted May 31, 2012 Share Posted May 31, 2012 My webshop is currently running on the media server option because the cloudcache module isn't working like it should. I made 3 CDN's with SharedSSL option enabled in cloudcache and used the SharedSSL links and added them. Works good also in the SSL secured parts of the website. I looked at my cloudcache account for a overview what is stored in the CDN. On all 3 CDN's the following file types are stored: jpg jpeg gif txt png ico css js Altough cloudcache stores the css and js files it looks like they aren't used by the media server. The media server does speed up your website because it can download multiple files from different locations. Cloudcache stores the images in same maps like on my own server so you will probably need to duplicate files on a other server and then set up the link to that server in the media server option. Then it can get a images from your own server or from the media server. Link to comment Share on other sites More sharing options...
adamus007p Posted May 31, 2012 Author Share Posted May 31, 2012 How the CCC server can speed up the shop when there is same location e.g. www.myshop.com and CCC servers cccserver1.myshop.com cccserver2.myshop.com cccserver3.myshop.com it should be hosted in same server? or it should be a copy of shop stored in hosting B and there subdomains should be pointed? Link to comment Share on other sites More sharing options...
adamus007p Posted May 31, 2012 Author Share Posted May 31, 2012 http://www.prestashop.com/blog/en/10-best-tips-to-speed-up-your-prestashop-store-3/#comment-1899 Please see that 5. Create sub-domains for Javascript files and CSS files Create a sub-domain js1.mystore.com and ask your hosting provider to direct it to /js/ Create a sub-domain js2.mystore.com and ask your hosting provider to direct it to /theme/mytheme/js/ Create a sub-domain css1.mystore.com and ask your hosting provider to direct it to /css/ Create a sub-domain css2.mystore.com and ask your hosting provider to direct it to /theme/mytheme/css/ These 4 sub-domains will allow your visitors to load more files at the same time. Basically, a web-browser is limited to 8 parallel downloads. Each sub-domain is adding 8 new parallel downloads, so the total would be 40 (Main domain + 4 sub-domains). it is regards CCC media servers? so this subdomains should be pointed to this certain folders? Link to comment Share on other sites More sharing options...
adamus007p Posted June 4, 2012 Author Share Posted June 4, 2012 (edited) 5. Create sub-domains for Javascript files and CSS files Create a sub-domain js1.mystore.com and ask your hosting provider to direct it to /js/ Create a sub-domain js2.mystore.com and ask your hosting provider to direct it to /theme/mytheme/js/ Create a sub-domain css1.mystore.com and ask your hosting provider to direct it to /css/ Create a sub-domain css2.mystore.com and ask your hosting provider to direct it to /theme/mytheme/css/ These 4 sub-domains will allow your visitors to load more files at the same time. Basically, a web-browser is limited to 8 parallel downloads. Each sub-domain is adding 8 new parallel downloads, so the total would be 40 (Main domain + 4 sub-domains). but in Prestashop there are only 3 lines to write subdomains other question is if cache need me enabled? see attachment Edited June 4, 2012 by adamus007p (see edit history) Link to comment Share on other sites More sharing options...
pel024 Posted June 7, 2012 Share Posted June 7, 2012 Hi all, Using Rocky's method works fine on regular pages (speed noticeably increased), but no css or images loaded when on https. Anyone know how to fix this? Perhaps by forcing the content to be called from it's original location when on https pages, rather than the media server/subdomain? Cheers Link to comment Share on other sites More sharing options...
adamus007p Posted June 7, 2012 Author Share Posted June 7, 2012 pel024 I wrote my post here: http://www.prestashop.com/blog/en/10-best-tips-to-speed-up-your-prestashop-store-3/#comment-1899 I was contacting with developers, but I have fealing that nobody know how it work there are different informaction: point subdomains to same root shop folder point subdomains to: Create a sub-domain js1.mystore.com and ask your hosting provider to direct it to /js/ Create a sub-domain js2.mystore.com and ask your hosting provider to direct it to /theme/mytheme/js/ Create a sub-domain css1.mystore.com and ask your hosting provider to direct it to /css/ Create a sub-domain css2.mystore.com and ask your hosting provider to direct it to /theme/mytheme/css/ with PS 1.4.3 not works, I will update shop and try to do test with new version. Link to comment Share on other sites More sharing options...
Asenar Posted June 7, 2012 Share Posted June 7, 2012 Hi, Media Server #1 : "name of the second domain" : that's because your first domain is your main domain. Link to comment Share on other sites More sharing options...
adamus007p Posted July 13, 2012 Author Share Posted July 13, 2012 (edited) Hi I already talked with a lot of people in prestashop regards this issue. Opened post in forum: http://www.prestasho...e-configure-it/ I sent email to Bruno Lévêque, who is PS manger and possible only one person who can help regards this problem. Hi Bruno I read your note regards how to speed up PS. http://www.prestasho...3/#comment-1899 I was trying to configure CCC media servers, also I was writing regards this issue with few people from Prestashop. I found your tips how it not works you wrote: Create sub-domains for Javascript files and CSS files Create a sub-domain js1.mystore.com and ask your hosting provider to direct it to /js/ Create a sub-domain js2.mystore.com and ask your hosting provider to direct it to /theme/mytheme/js/ Create a sub-domain css1.mystore.com and ask your hosting provider to direct it to /css/ Create a sub-domain css2.mystore.com and ask your hosting provider to direct it to /theme/mytheme/css/ please refer to my topic on PS forum: http://www.prestasho...it/#entry844457 5. Create sub-domains for Javascript files and CSS files Create a sub-domain js1.mystore.com and ask your hosting provider to direct it to /js/ Create a sub-domain js2.mystore.com and ask your hosting provider to direct it to /theme/mytheme/js/ Create a sub-domain css1.mystore.com and ask your hosting provider to direct it to /css/ Create a sub-domain css2.mystore.com and ask your hosting provider to direct it to /theme/mytheme/css/ These 4 sub-domains will allow your visitors to load more files at the same time. Basically, a web-browser is limited to 8 parallel downloads. Each sub-domain is adding 8 new parallel downloads, so the total would be 40 (Main domain + 4 sub-domains). but in Prestashop there are only 3 lines to write subdomains other question is if cache need me enabled? see attachment I can add only 3 subdomains not 4 (there is no place to put 4). Even when I will put 3 it not works. The look of website is broken. I opened ticket for it: http://forge.prestas...owse/PSCFI-6074 post on forum: http://www.prestasho...e-configure-it/ See the attachement Edited July 13, 2012 by adamus007p (see edit history) Link to comment Share on other sites More sharing options...
sbm Posted July 23, 2012 Share Posted July 23, 2012 Hi adamus, Adding those 3 subdomains and asking the host......reduced your load time????? If yes, how much please (something noticeable)? Regards, Steven Link to comment Share on other sites More sharing options...
adamus007p Posted July 28, 2012 Author Share Posted July 28, 2012 (edited) Hi all I have answer: If someone want to use media servers need to add 3 subdomains to root folder of the prestashop @Sbm Regards your question I did not noticed any difference regards the speed. Maybe there are a difference when the server is overload and media servers give you more slots for people. I spend 2 months to investigate prestashop SEO and speed I paid to company which will write dedicated modules for me. Modules will be also available for PS users. I don't recommend coundcache, they crashed my website and I have to to back up everything to be sure that PS will works OK. If someone is interested I share my email to this "company". They just ignored me... What can I recommend to use CCC and media servers but... as you can read my but: http://forge.prestas...owse/PSCFI-6137 I have problem with SEO - it dropped down after PS update from 1.4.3 to 1.4.8.2 Now I am checking how google read CCC: CCC allows you to reduce the loading time of your page. With these settings you will gain performance without even touching the code of your theme. Make sure, however, that your theme is compatible with PrestaShop 1.4+. Otherwise, CCC will cause problems. Smart cache for CSS Use CCC for CSS. Keep CSS as original Smart cache for JavaScript Use CCC for JavaScript. Keep JavaScript as original Minify HTML Minify HTML after "smarty compile" execution. Keep HTML as original Compress inline JavaScript in HTML Compress inline JavaScript in HTML after "smarty compile" execution Keep inline JavaScript in HTML as original High risk HTML compression HTML is compressed but cancels the W3C validation (only when "Minify HTML" is enabled) Keep W3C validation and how it influence on SEO If someone have similar problem please contact with me, we will try to figure out it. PS. I am not sure if CCC and media servers can be used in the same time. If someone know please share it with us. Edited July 28, 2012 by adamus007p (see edit history) Link to comment Share on other sites More sharing options...
cutecat Posted August 24, 2013 Share Posted August 24, 2013 anyone got the CCC resolved? Link to comment Share on other sites More sharing options...
[hans] Posted August 24, 2013 Share Posted August 24, 2013 anyone got the CCC resolved? Fix https + ccc (or cdn) easy and cheap here: http://prestamodules.innovadeluxe.com/modulos-prestashop/deluxe-ssl-media/ Regards Link to comment Share on other sites More sharing options...
traktap Posted May 10, 2017 Share Posted May 10, 2017 (edited) System is ver 1.6.1.11 System has 3 CDN media servers in CCC However Images used in the Theme etc does not convert its domain to the CDN server https://swasthyashailee.com should get replaced by https://CDN-NAMENUMBER https://swasthyashailee.com/img/cms/Hair-Care-375x195.jpg not changed to https://CDN-NAME/img/cms/Hair-Care-375x195.jpg These are the images used in Themes HTML Block Please guide Edited May 10, 2017 by traktap (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now