
內容簡介
Autover 外掛可以自動為您的 CSS 和 JS 檔案進行版本控制。當使用內容分發網路 (CDN) 傳送靜態檔案,例如 CSS 和 JavaScript 時,這非常有用。這款外掛會在資源 URL 後附加由 filemtime() PHP 函式產生的數字版本號 (例如 style.css?ver=1359464809)。這表示每當 CSS 或 JS 檔案被儲存時,版本號都會更新。
重要提示: 本外掛僅適用於使用標準 WordPress 函式 wp_enqueue_style 和 wp_enqueue_script 和/或 admin_enqueue_style、admin_enqueue_script 的 CSS 和 JS 檔案。
外掛標籤
開發者團隊
原文外掛簡介
Autover plugin will automatically version your CSS and JS files. This is especially useful when using a Content Distribution Network (CDN) for delivering static files like CSS and JavaScripts. The plugin appends to the resource URL a numeric version number generated by the filemtime() PHP function (e.g. style.css?ver=1359464809). This means the version number will be updated every time the CSS or JS file is being saved.
IMPORTANT: this plugin only works with CSS and JS files that are enqueued using the standard WordPress functions wp_enqueue_style and wp_enqueue_script and/or admin_enqueue_style, admin_enqueue_script.
