Releases: wpsharks/html-compressor
WebSharks HTML Compressor v170420.24924
- Bug Fix: The HTML Compressor was returning an empty string upon encountering an invalid UTF-8 sequence. See Issue #871 reported by a Comet Cache user.
WebSharks HTML Compressor v161208
Bug Fix: Undefined variable $caSe_insensitive
, corrected in this release.
WebSharks HTML Compressor v161207
- Adding new config option:
amp_exclusions_enable
(default is enabled). This improves compatibility with Accelerated Mobile Pages. When this option is enabled and the URI being compressed ends with/amp/
, or the document contains a top-level<html ⚡>
tag (<html amp>
is accepted as well), then features which are incompatible with Accelerated Mobile Pages will be disabled accordingly, regardless of your other settings. See Issue #695 in the Comet Cache repo. - Adding
isDocAmpd()
conditional check against current URI & document. - Adding automatic AMP feature exclusions for improved AMP compatibility.
- Optimizing for speed by removing unnecessary calls to
unset()
. - Enhancing unicode compatibility by taking full advantage of all
mb_*()
functions. - Adding multibyte compatible
pregQuote()
. - Adding multibyte compatible
replaceOnce()
. - Adding multibyte compatible
substrReplace()
. - Updating all regex patterns to add the
/u
flag for unicode compatibility. - Updating minimum PHP requirement. Now requires PHP v5.4+ in support of short array syntax
[]
.
WebSharks HTML Compressor v161108
- Enhancing Exclusion Tests: Now testing exclusion rules against full open tag instead of only the CSS or JS URL and content. This allows for exclusion rules that exclude CSS or JS based on an opening tag attribute; e.g.,
<style id='rs-plugin-settings-inline-css'
. See also: this Comet Cache issue.
HTML Compressor v160118
- Adding support for URI exclusions. See: wpsharks/comet-cache#651
- Updating to latest version of websharks/phings.
- Updating test file; i.e., adding test for URI exclusions.
- Updated README.md to mention URI exclusions.
HTML Compressor v150923
- Resolved a bug related to
$_SERVER['REQUEST_SCHEME']
. See: #73
HTML Compressor v150821
- Improved HTTP connection handling, timeouts, protocol, BOM markers, exceptions,
Referer:
andUser-Agent:
headers. See: #69 for details. See also: wpsharks/comet-cache#391 - Resolves a bug related to CSS pseudo selectors
:
and whitespace. See this GitHub issue if you'd like additional details. <noscript>
bug fix; i.e., these should be excluded automatically in order to preserve their intended purpose. The HTML Compressor now makes no adjustments to anything inside<noscript>
tags, and the same has always been true for IE conditional comments as well. See also: #65- Adding
css_url()
filter support for plugins like ZenCache that need to filter the URLs used in CSS whenever Static CDN Filters are applied. See: #62 See also: wpsharks/comet-cache#427 (comment)
HTML Compressor v150820
- Updating to latest release of CSS Minifier to resolve a bug related to spaces around
:
colons.
HTML Compressor v150819
-
Bug Fix: The HTML Compressor now strips UTF-8 Byte Order Markers (BOMs) from CSS files generated by preprocessors such as Sass. Files consolidated by the HTML Compressor include an
@charset
rule already, making a BOM unnecessary. In fact, if BOMs are not stripped, some browsers will choke on portions of a consolidated CSS file, because a BOM could potentially appear in the middle of the file; i.e., at the wrong place.Symptoms included: mysterious missing styles in portions of the site, fonts not loading at all times, or font-based icons (e.g., FontAwesome) to render mystery glyphs instead of the icons.
-
Bug Fix: Improved strict data type comparison when analyzing
$_SERVER
environment variables to detect anhttps://
connection URL. We now detect(integer)443
and(string)443
. In addition, we can now pick up$_SERVER['HTTPS']
being any of1|on|yes|true
(caSe insensitive).
HTML Compressor v150512
Updating build.