How to Use 'Self-Hosting' Application?

Modified on Tue, 6 May at 2:58 PM


The Self-Hosting application gives you the option of self-hosting domains other than the main domain of your website. This improves performance and user experience by optimising requests to download resources stored on external domains.


Through a thorough analysis of resources (scripts, images, etc.) hosted on external domains, you can identify the elements that slow down loading speeds and implement effective optimization strategies.

What is self-hosting?


This involves rewriting the URLs of resources stored on domains other than the site's main domain, so that when the browser requests these resources, it requests them from the same server that hosts the HTML page itself.

We can also talk about "unsharded" domains.


Find out more about the benefits and challenges of self-hosting third-party resources.


How do I activate the feature?


By enabling Self-Hosting, Fasterize will rewrite the URLs of resources stored on listed domains to reduce the number of domains to resolve and rely on the Fasterize cache for stored resources. It is important to note that this change only applies to URLs present in HTML, and not to URLs contained in third-party scripts.


Exemple :


website domainSelf-hosting
content.site.frhttps://www.mon-site.fr/fstrz/r/s/content-site.fr/
www.les-images.comhttps://www.mon-site.fr/fstrz/r/s/www.les-images.com


The "Do not activate for website domain" option allows you not to modify the URL path for the resources of the main 

domain.

Example: the main domain will not have the format https://www.mon-site.com/fstrz/r/s/www.mon-site.com



Webperf advantage

Without self-hosting, these resources are served from a different domain to the main page. They cannot therefore be prioritised correctly by the browser and compete for download bandwidth. This can lead to download times that are significantly longer than those of other essential primary resources, at best.



Find out more about Loading speed and Third Parties: the impact and optimisation of third-party scripts [Web performance study].


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article