AI助手支持GPT4.0
The CC-Minify plugin optimizes your website’s CSS and JS files by combining, minifying, grouping and caching them to speed up your page’s load time.
CC-Minify插件通过组合,缩小,分组和缓存它们来优化您网站的CSS和JS文件,以加快页面的加载时间。
This plugin uses the Minify PHP library.
此插件使用 Minify PHP库。
Additionally using Apache with mod_rewrite (or other server supports URL rewriting) it can rewrite URL to simplify the CSS and JS paths, for example:
此外,将Apache与mod_rewrite结合使用(或其他服务器支持URL重写),它可以重写URL以简化CSS和JS路径,例如:
from: http://example.com/wp-content/cache/styles/all.css to: http://example.com/styles/all.css
http://example.com/wp-content/cache/styles/all.css
http://example.com/styles/all.css
从: http://example.com/wp-content/cache/styles/all.css code>到: http://example.com/styles/all.css code> from: http://example.com/wp-content/cache/scripts/head.js to: http://example.com/scripts/head.js从: http://example.com/wp-content/cache/scripts/head.js code>到: http://example.com/scripts/head.js code> This plugin is compatible with Multisite WordPress installations.此插件与多站点WordPress安装兼容。 p>Tips & Tricks提示和技巧 h4>You can check if a css and/or js files has been served from a cache by opening the page’s source code.您可以通过打开页面的源代码来检查是否已从缓存中提供css和/或js文件。If files are served from cache, you should see a comment with the date and time when it was last cached, for example: 如果文件是从缓存提供的,则应该看到带有最后缓存日期和时间的注释,例如: <!-Minify @ 2016-11-07 12:34:56-> p>Requirements要求 h3>Server supports URL rewriting: Apache with mod_rewrite, IIS 7.0+ permalink support or nginx.服务器支持URL重写:Apache带有mod_rewrite,IIS 7.0+永久链接支持或nginx。 li>Read/Write access to wp-content/cache directory.读取/写入对wp-content / cache目录的访问。 li>PHP interpreter version >= 5.3. PHP解释器版本> = 5.3。 li> ol>
http://example.com/wp-content/cache/styles/all.css code>到: http://example.com/styles/all.css code> from: http://example.com/wp-content/cache/scripts/head.js to: http://example.com/scripts/head.js从: http://example.com/wp-content/cache/scripts/head.js code>到: http://example.com/scripts/head.js code> This plugin is compatible with Multisite WordPress installations.此插件与多站点WordPress安装兼容。 p>Tips & Tricks提示和技巧 h4>You can check if a css and/or js files has been served from a cache by opening the page’s source code.您可以通过打开页面的源代码来检查是否已从缓存中提供css和/或js文件。If files are served from cache, you should see a comment with the date and time when it was last cached, for example: 如果文件是从缓存提供的,则应该看到带有最后缓存日期和时间的注释,例如: <!-Minify @ 2016-11-07 12:34:56-> p>Requirements要求 h3>Server supports URL rewriting: Apache with mod_rewrite, IIS 7.0+ permalink support or nginx.服务器支持URL重写:Apache带有mod_rewrite,IIS 7.0+永久链接支持或nginx。 li>Read/Write access to wp-content/cache directory.读取/写入对wp-content / cache目录的访问。 li>PHP interpreter version >= 5.3. PHP解释器版本> = 5.3。 li> ol>
http://example.com/styles/all.css code> from: http://example.com/wp-content/cache/scripts/head.js to: http://example.com/scripts/head.js从: http://example.com/wp-content/cache/scripts/head.js code>到: http://example.com/scripts/head.js code> This plugin is compatible with Multisite WordPress installations.此插件与多站点WordPress安装兼容。 p>Tips & Tricks提示和技巧 h4>You can check if a css and/or js files has been served from a cache by opening the page’s source code.您可以通过打开页面的源代码来检查是否已从缓存中提供css和/或js文件。If files are served from cache, you should see a comment with the date and time when it was last cached, for example: 如果文件是从缓存提供的,则应该看到带有最后缓存日期和时间的注释,例如: <!-Minify @ 2016-11-07 12:34:56-> p>Requirements要求 h3>Server supports URL rewriting: Apache with mod_rewrite, IIS 7.0+ permalink support or nginx.服务器支持URL重写:Apache带有mod_rewrite,IIS 7.0+永久链接支持或nginx。 li>Read/Write access to wp-content/cache directory.读取/写入对wp-content / cache目录的访问。 li>PHP interpreter version >= 5.3. PHP解释器版本> = 5.3。 li> ol>
from: http://example.com/wp-content/cache/scripts/head.js to: http://example.com/scripts/head.js
http://example.com/wp-content/cache/scripts/head.js
http://example.com/scripts/head.js
从: http://example.com/wp-content/cache/scripts/head.js code>到: http://example.com/scripts/head.js code> This plugin is compatible with Multisite WordPress installations.此插件与多站点WordPress安装兼容。 p>Tips & Tricks提示和技巧 h4>You can check if a css and/or js files has been served from a cache by opening the page’s source code.您可以通过打开页面的源代码来检查是否已从缓存中提供css和/或js文件。If files are served from cache, you should see a comment with the date and time when it was last cached, for example: 如果文件是从缓存提供的,则应该看到带有最后缓存日期和时间的注释,例如: <!-Minify @ 2016-11-07 12:34:56-> p>Requirements要求 h3>Server supports URL rewriting: Apache with mod_rewrite, IIS 7.0+ permalink support or nginx.服务器支持URL重写:Apache带有mod_rewrite,IIS 7.0+永久链接支持或nginx。 li>Read/Write access to wp-content/cache directory.读取/写入对wp-content / cache目录的访问。 li>PHP interpreter version >= 5.3. PHP解释器版本> = 5.3。 li> ol>
http://example.com/wp-content/cache/scripts/head.js code>到: http://example.com/scripts/head.js code> This plugin is compatible with Multisite WordPress installations.此插件与多站点WordPress安装兼容。 p>Tips & Tricks提示和技巧 h4>You can check if a css and/or js files has been served from a cache by opening the page’s source code.您可以通过打开页面的源代码来检查是否已从缓存中提供css和/或js文件。If files are served from cache, you should see a comment with the date and time when it was last cached, for example: 如果文件是从缓存提供的,则应该看到带有最后缓存日期和时间的注释,例如: <!-Minify @ 2016-11-07 12:34:56-> p>Requirements要求 h3>Server supports URL rewriting: Apache with mod_rewrite, IIS 7.0+ permalink support or nginx.服务器支持URL重写:Apache带有mod_rewrite,IIS 7.0+永久链接支持或nginx。 li>Read/Write access to wp-content/cache directory.读取/写入对wp-content / cache目录的访问。 li>PHP interpreter version >= 5.3. PHP解释器版本> = 5.3。 li> ol>
http://example.com/scripts/head.js code> This plugin is compatible with Multisite WordPress installations.此插件与多站点WordPress安装兼容。 p>Tips & Tricks提示和技巧 h4>You can check if a css and/or js files has been served from a cache by opening the page’s source code.您可以通过打开页面的源代码来检查是否已从缓存中提供css和/或js文件。If files are served from cache, you should see a comment with the date and time when it was last cached, for example: 如果文件是从缓存提供的,则应该看到带有最后缓存日期和时间的注释,例如: <!-Minify @ 2016-11-07 12:34:56-> p>Requirements要求 h3>Server supports URL rewriting: Apache with mod_rewrite, IIS 7.0+ permalink support or nginx.服务器支持URL重写:Apache带有mod_rewrite,IIS 7.0+永久链接支持或nginx。 li>Read/Write access to wp-content/cache directory.读取/写入对wp-content / cache目录的访问。 li>PHP interpreter version >= 5.3. PHP解释器版本> = 5.3。 li> ol>
This plugin is compatible with Multisite WordPress installations.
此插件与多站点WordPress安装兼容。 p>
You can check if a css and/or js files has been served from a cache by opening the page’s source code.
您可以通过打开页面的源代码来检查是否已从缓存中提供css和/或js文件。
If files are served from cache, you should see a comment with the date and time when it was last cached, for example:
如果文件是从缓存提供的,则应该看到带有最后缓存日期和时间的注释,例如:
<!-Minify @ 2016-11-07 12:34:56-> p>
ol>
.htaccess
.htaccess code>文件的开头。 li>
The plugin can be activated and used for just about any use case.
可以激活该插件并将其用于几乎所有用例。 p>
ul>
原文出处:http://www.sanshu.cn/a/6716.html
群主管理都是支付大佬