How VNIS speeds up static and dynamic content?
Tue Oct 11 2022Websites that load slowly, users will quickly leave. So, let's find out how VNIS helps speed up content delivery?
Many businesses are always trying to make their Website more beautiful and modern. Therefore, they want to add more new features, content or functionality to the Website. However, if the Website loads slowly, users will quickly leave without having time to experience the features or attractive content on the page. Find out how VNIS accelerates content delivery through this article.
Content classification
Before learning about how VNIS helps speed up content delivery, we will learn about the definition of two basic types of content on a website (static and dynamic) as follows:
1. Static content: is loaded directly from the server and the format remains the same unless the website developer changes the source code. Examples are: CSS files, JavaScript files, images, audio files, video files, and downloadable content (software, documents, etc.).
Static content will be quickly delivered to end users thanks to an alliance network of multiple CDNs (Multi CDN) world leaders such as: (VNCDN, Cloudflare, Akamai, Fastly,...) are managed on a single platform of VNIS.
2. Dynamic content: goes through different layers of application logic before being downloaded from the server, so the format may change based on controls set up by the site administrator, preferences of user, location, time of day and other factors. Examples include: user account information, databases, translated web pages, messaging applications (text, voice, and video) and real-time data (weather forecasts, stock prices, etc.)
In this article, we will highlight how VNIS helps to speed up content delivery and increase page performance by more than 30% for our clients.
Website speed is affected by what factors?
There are many factors that affect the loading speed of a Web page, here are 6 key points that you need to know:
- Internet speed at user's location
- Content transmission distance from origin server to end user
- Data processing speed of Web Server (where the data that users need is stored)
- The volume of content on the Web page (text, images, video, audio, ...)
- The type of content that users need to see
- DDoS attack at a time when traffic from users is increasing (hours of sale, live streaming football, international TV events, ...)
The factors mentioned above are the main reasons for reducing the user experience on your website. At this point, VNIS solution will improve website performance by accelerating content delivery (both dynamic content and static content on the page.
How does VNIS speed up and secure the website?
VNIS completely eliminates factors that affect the loading speed of Web pages, specifically as follows:
- Minimize the amount of content (such as videos, ...) to match the internet situation
- Shorten the distance from the origin server to the end user with a global network of content cache CDNs.
- Alternate Web Server returns content results to end users.
- Support file compression to optimize large data files on the page
- Shred data files (Video,...) to ensure smooth transmission of large volumes of data.
- Prevent all forms of DDoS attacks (Layer 3/4/7), ensure the website always works stably, even when under attack.
In particular, VNIS collaborates to bring dynamic content to the end users as quickly as possible. This is the important part that we want to talk about in this article.
How VNIS speeds up loading of dynamic content
In the usual case, when there is a request to load dynamic content from the user, the origin server needs to "process the data" before sending the full response to the browser. During this "data processing", the origin server will make a call to the database or API, perform some authorization on request, check the data, or make sure the request from the end user is correct. Valid.
So while the origin server is still "processing the data", the system cannot send any response to the browser yet. Therefore, the browser has to wait until this process is complete to display the results to the end user.
In order to shorten the waiting time, and return the fastest results to the user, VNIS has implemented a phase called "103 Early Hints". At this stage, VNIS will take advantage while the origin server is "processing data" to ask the edge servers (Edge Server) to send instructions "Early Suggestions" to the browser to start the process of downloading some files. content on the page. These are usually things that don't change often (i.e. static content), such as stylesheets, fonts, javascript, etc.
By pre-downloading these content, the page loads quickly. Because stylesheets, fonts, JavaScripts, etc. prepared to display the results on the page while getting enough response data from the server.
This way, dynamic content (like HTML documents) will be processed sooner. In short, VNIS's suggestion and ability to multi-task,... helps speed up the delivery of dynamic content.
Implementation process
For the first dynamic data processing, when the VNIS edge server receives a response from the origin server, it parses the [Link Headers] according to preload or pre-connect type. [Link Header] allows the browser to determine which resources need to be loaded first while the server prepares a full response.
The VNIS edge server will then take these [Link Headers] and cache them at the edges to be ready to serve the following requests.
When subsequent requests come in, the edge server immediately sends a cached "Early Hint" response and delegates the request to the origin server generating a full response. Because VNIS edge servers are geographically closer to end users, VNIS can help provide recommendations faster.
Once the full response is available, the response will contain all of the page's content and also contain [Link Headers]. The VNIS edge server will provide the rest of the content to the client. The VNIS will compare the [Link Headers] in the original server's full response with the response from the cached versions, to ensure that the [Link Headers] are properly updated.
How to enable "Early Hints" function?
To enable “103 Early hint” feature, you can login to VNIS portal and navigate to “Multi CDN” > “General settings” > “HTTP 103 Early hint”
On the “103 Early hint” section, simply enable the feature to complete the activation.
Note: This feature is a performance enhancement feature of Origin Shield. Therefore, you need to activate Origin Shield first.
For quick support, you can call us via hotline: (028) 7306 8789 or leave your contact information below.
It can be said that website performance is an important factor for the long-term success of the business. Your website can have many good features and attractive content. But all will be meaningless if the client has to wait for the page load time.
Therefore VNIS has brought diverse content delivery acceleration solutions (both static and dynamic content) to ensure excellent page loading speed for businesses.
Register for a trial of VNIS to speed up and protect your Website today!
Table Of Contents