Skip to content
View in the app

A better way to browse. Learn more.

thirty bees forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Media Servers for dummies

Featured Replies

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...

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 :)

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

  • 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.

  • 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')

  • 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...?

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.

If you are using local media servers there is no benefit to using them, it actually might harm performance.

  • 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 (:

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.

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

@lesly how to integrate TB media server in to cloud flare ? please say something

Cloudflare is not for media servers. Stackpath or similar is for media servers. Cloudflare is just frontend caching really.

  • 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 (:

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.