跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 关于 nginx 配置 http2 的 server push 的疑问
未分類
11 3 月 2021

关于 nginx 配置 http2 的 server push 的疑问

关于 nginx 配置 http2 的 server push 的疑问

資深大佬 : litchinn 5

例如 vue 项目打包后,在 /js 或者 /css 包中有许多资源,想通过 server push 直接推给浏览器,那么改如何写配置呢? nginx 官方说:

Pre-emptively sends (pushes) a request to the specified uri along with the response to the original request. Only relative URIs with absolute path will be processed, for example:

http2_push /static/css/main.css;

The uri value can contain variables.

uri 可以包含变量,这里的变量是怎么个写法呢,是指“*”这样的匹配方式吗,能将 /js 或 /css 中的部分资源进行推送吗?

大佬有話說 (0)

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具