SHIROKO Posted February 3, 2014 Share Posted February 3, 2014 Hello, Does anybody know how to change the path for static content in order to prevent unnecessary cookie traffic ? I want all my static content to be delivered from a subdomain : static.mydomain.com Thanks ! Link to comment Share on other sites More sharing options...
Dh42 Posted February 4, 2014 Share Posted February 4, 2014 The dead simplest way to do it is to serve it from something like MaxCDN, it will strip the cookies that way. But it will take some customization if you are running an ssl certificate and do not want to purchase a wildcard one. A cheap method without MaxCDN is to edit the cname of a sub domain to point to your site root, it will give you the parallel download abilities, but it will not strip off all the cookies. Namely the GA cookie will not be stripped off. Link to comment Share on other sites More sharing options...
SHIROKO Posted February 4, 2014 Author Share Posted February 4, 2014 Hi Dh42, Thanks for your response. I'd like my PrestaShop to be PCI compliant and use an EV SSL. I can't imagine an Ecommerce without this minimum requirement when you accept online CC payments. I personnaly don't even sign up on non SSL + trusted websites, so for shopping on those websites... So if I understand, I have no choice, but use a CDN compatible with EV SSL certificates ? Is there no workaround to deliver on my own static content cookiefree without stripp off cookies ? Thanks Link to comment Share on other sites More sharing options...
Dh42 Posted February 4, 2014 Share Posted February 4, 2014 You could set up and run varnish from a different server using a cname to the main site. Link to comment Share on other sites More sharing options...
SHIROKO Posted February 6, 2014 Author Share Posted February 6, 2014 Hi Dh42, Why use a different server to run varnish ? It would make unecessar external HTTP / DNS requests to deliver / get content. Can I use varnish on my subdomain instead ? Link to comment Share on other sites More sharing options...
Dh42 Posted February 6, 2014 Share Posted February 6, 2014 The dns request would be the same if you use a subdomain. You cannot run varnish on the same server and only have it work on a subdomain from my understanding. The major benefit to using a CDN service is the edge servers. Images and static files are servered from servers that are geographically closer to the user. This speeds things up greatly. Some can also recompress your images to make them smaller automatically, where just using Prestashop you cannot do that. Link to comment Share on other sites More sharing options...
SHIROKO Posted February 8, 2014 Author Share Posted February 8, 2014 I'm a bit lost tbh... There is SOOOOO many things to twik that I have no idea what the best combinaison is. Assuming I have access to a CDN, Google mod_pagespeed enabled on my server, what are the best settings from BO in performance section to make my PrestaShop FLY ? I installed Nginx on my server instead of Apache, it already speeded up the pages loadtime. Can I use Varnish + Memcached together with my CDN ? Thanks ! Link to comment Share on other sites More sharing options...
trevorgilligan Posted February 10, 2017 Share Posted February 10, 2017 can anyone recommend their top 3 CDN's to use? Link to comment Share on other sites More sharing options...
trevorgilligan Posted February 10, 2017 Share Posted February 10, 2017 also if you use cdn subdomain.main.com , in media servers do you put it in 3 times in performance? subdomain.main.com subdomain.main.com subdomain.main.com 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