美站

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 3|回復: 0

Implementing the service is very simple and comes down to reconfiguring

[複製鏈接]

1

主題

1

帖子

5

積分

新手上路

Rank: 1

積分
5
發表於 2024-1-24 18:04:51 | 顯示全部樓層 |閱讀模式
本帖最後由 niyadiw130 於 2024-1-24 18:06 編輯

The DNS records of our domain - for a detailed description of how to do it, please refer to the CloudFlare help documentation. The most important thing - for our applications, the free version of the service is completely sufficient  3. We are boosting our website. All CloudFlare clients using HTTP2 have Server Push enabled by default, but as I mentioned earlier, this is not enough. We still need to do some digging in our htaccess file to enjoy the benefits of this technology.

The trick is to add a directive to add an additional http header: Header add Link '</sciezka/do/styl.css>; rel=preload; as=stylesheet' Where: preload – information (for the server and client) that a given Phone Number List resource will be sent via push as – resource type, possible values ​​are presented in the table below http2article-table Resource paths must be relative and "local" they cannot be pointers to objects outside our domain. We do not change anything in the code of our website, we do not remove references to objects that we have declared as a link in htaccess! And that's pretty much it.



What should you remember? The added link headers should indicate "universal" resources that are loaded on all pages of our website,  global styles, scripts, logo images, menu icons, fonts, etc. There is no point in pointing to an image that appears only on one specific page of our website. If we want to optimize the speed of a specific page, I suggest using the following syntax <Files /sciezka/do/konkretna-strona.php> Header add Link '</sciezka/do/obrazek1.jpg>; rel=preload; as=image' Header add Link </Files> If a group of pages that can be identified using a regular expression is to be optimized, I suggest using FilesMatch.

回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|自動贊助|美站

GMT+8, 2025-5-15 04:42 , Processed in 0.056902 second(s), 18 queries .

抗攻擊 by GameHost X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回復 返回頂部 返回列表
一粒米 | 中興米 | 論壇美工 | 設計 抗ddos | 天堂私服 | ddos | ddos | 防ddos | 防禦ddos | 防ddos主機 | 天堂美工 | 設計 防ddos主機 | 抗ddos主機 | 抗ddos | 抗ddos主機 | 抗攻擊論壇 | 天堂自動贊助 | 免費論壇 | 天堂私服 | 天堂123 | 台南清潔 | 天堂 | 天堂私服 | 免費論壇申請 | 抗ddos | 虛擬主機 | 實體主機 | vps | 網域註冊 | 抗攻擊遊戲主機 | ddos |