February 15, 20188 yr Hello again, I'm also taking a look at the Media Server Feature right now, but actually...I don't see any effects. So can someone explain me nice and slow what I have to do? (: I created a subdomain (lets call it "static.domain.com") the subdomain's root-folder is the same as the main-domain's = "/httpdocs" the subdomain has a SSL certificate, as well I added the subdomain in the backoffice at advanced parameter > performance > media server #1 clicked on "save" Well...and then? I don't see any effects :D Google pagespeed, gtmetrix etc. still say it's missing...
February 15, 20188 yr Did you clear cache? This feature doesn't have big impact. The http requests are still routed to the same server, the only difference is that these requests don't contain cookies. Which can save few hundreds bytes per request. It would be much more interesting if there was a mechanism to transfer static context to different server (say amazon s3), and when everything is synced then turn this media server automatically. It's probably hard to implement, because the static context in tb is not that static :)
February 15, 20188 yr also, if your server is on 2-level domain such as http://domain.com, then it will have no effect if you set up static server on subdomain, ie static.domain.com. Cookies will be shared. Cookieless request will be only if your primary server is on subdomain as well, ie www.domain.com
February 15, 20188 yr Author After my lunch break I see some changes. So the media server seems to do at least something. It looks like my fonts aren't loading now. So for some reason the folder themes/themeXY/fonts can't be read...? Images, css and js are working, as far as I can see.
February 15, 20188 yr You will need to set up CORS policy on your server https://github.com/fontello/fontello/wiki/How-to-setup-server-to-serve-fonts
February 15, 20188 yr Author Hmm, this was already set up. I'm wondering if just the fonts-folder is not copied correctly to the media server So the path in the CSS file points to a folder that is empty/doesn't exist. right now it is: url('/themes/theme1366/fonts/exo-2-v4-latin-200.eot')
February 15, 20188 yr @manisch in the first post you wrote that your subdomain’s root-folder is the same as the main-domain’s = “/httpdocs”. So there shouldn't be any copy error :) What does your console/network tab says? Is it 404, or other error?
February 15, 20188 yr Author Translated Firefox says something like: Cross-Origin Request Blocked: The Same-Source Rule prohibits reading the external resource at https://static.domain.com/themes/themeXY/fonts/fontawesome-webfont.woff2?v=4.5. 0th (Reason: CORS header 'Access-Control-Allow-Origin' missing). But the CORS-stuff is already included to the .htaccess file...?
February 15, 20188 yr I have the same problem. Are you using EnginTron and Nginx as a reverse proxy? There is apparently an issue where Nginx creates its own Access-Control-Allow-Origin and regardless of what you do in htaccess, it ends up creating a situation where one domain is blocked from loading content. Still trying to figure that one out.
February 16, 20188 yr If you are using local media servers there is no benefit to using them, it actually might harm performance.
February 16, 20188 yr Author @lesley said in Media Servers for dummies: If you are using local media servers there is no benefit to using them, it actually might harm performance. Well, I can always deactivate it, if it feels worse (:
February 20, 20188 yr I notice a significant speed increase, even with a local media server. However, I have not been able to resolve the issues with font awesome, so I keep it off.
February 20, 20188 yr Its actually slower to use them with http/2 now, you have the extra dns lookup, which is slower than the streaming download of http/2
February 21, 20188 yr @lesly how to integrate TB media server in to cloud flare ? please say something
February 21, 20188 yr Cloudflare is not for media servers. Stackpath or similar is for media servers. Cloudflare is just frontend caching really.
February 23, 20188 yr Author Well, my hosting doesn't seem to support the proper settings. Can anyone think of some kind of workaround for the font folder? This one seems to be the only one that causes trouble. Yes, even though you think media servers might be pointless...I just want to see the difference (:
February 23, 20188 yr If you have cpanel hosting, you can make sub domains and set the document root to the same root as your site. As for thinking they might not be better, that is not true. Its science, they are not better anymore.
Create an account or sign in to comment