
內容簡介
利用一流的縮小程式格式化你的 HTML、CSS 和 Javascript 以榨取每一個位元組,再搭配控制快取標頭、延遲載入等功能,你的網站不僅會變得明顯的更快,同時你的伺服器負擔也會降低,讓你可以透過現有的硬體設備服務更多的客戶。
該外掛還包括一套安全功能,協助你保護網站,包括完全控制 Content-Security-Policy 等內容,允許你控制哪些網域可以嵌入你的網站資源,以及你可以連接到哪些網域。這可以防止惡意腳本執行等安全問題。
功能
網站分析
環境資訊
頁面資訊,例如 MIME 類型、輸出大小和壓縮比率
資源計數和大小,並提供建議
包含說明和建議的效能指標
包含說明和建議的安全指標
縮小程式格式化
縮小你的 HTML(使用 HTMLdoc)
縮小和快取你的內置 CSS(使用 CSSdoc)
縮小和快取你的內置 Javascript(使用 JSlite)
合併檔案
合併和縮小 CSS 檔案
合併和縮小 Javascript 檔案
延遲載入圖片
標頭
設定共用快取逾時
設定客戶端快取逾時
讓客戶端檢查快取的頁面是否仍然有效,如果有效則傳送 HTTP 304 回應
安全
停用 MIME 嗅探
防止跨站腳本攻擊(XSS)
控制網站如何嵌入
啟用 HSTS 強制瀏覽器隻能透過 HTTPS 連接
指定 Content-Security-Policy 以控制哪些網域可以連接和嵌入網站內容
預載
選擇第一次載入時要預載的資源
預載合併樣式表
管理面板來控制所有功能,包括所有縮小程式最佳化
更多資訊,請參閱Torque Github 主頁。
外掛標籤
開發者團隊
② 後台搜尋「Torque – Optimise the transport of your Website」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
Take advantage of best in class minification to squeeze every byte out of your HTML, CSS, and Javascript, combine this with the control over cache headers, lazy loading, and more, and your website will not only be noticeably faster, your server will be under less load, enabling you to serve more clients with your existing metal.
The plugin also includes a suite of security features to help you secure your website, including full control over Content-Security-Policy, which enables you to control which domains can embed assets on your website, and what domains you can connect to. This prevents malicious scripts from being able to run and more.
Features
Site Analysis
Environment information
Page information such as MIME type, output size and compression ratio
Asset counts and sizes with recommendations
Performance metrics with descriptions and recommendations
Security metrics with descriptions and recommendations
Minification
Minify your HTML (Uses HTMLdoc)
Minify and cache your inline CSS (Uses CSSdoc)
Minify and cache your inline Javascript (Uses JSlite)
Combine Files
Combine and minify CSS files
Combine and minify Javascript files
Lazy load images
Headers
Set shared cache timeout
Set client cache timeout
Enable client to check whether their cached page is still valid, and send an HTTP 304 response if it is
Security
Disable MIME sniffing
XSS protection
Control how the site can be embedded
Enable HSTS to force browsers to only connect over HTTPS
Specify Content-Security-Policy to control what domains can connect and embed content in your site
Preload
Select which assets to preload with first load
Preload combined stylesheets
Administration panel to control all features, including all minification optimisations
Print minification stats in the console
See the Torque Github homepage for more information.
