Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adding new config option:
amp_exclusions_enable
(default is enabl…
…ed). This improves compatibility with [Accelerated Mobile Pages](https://www.ampproject.org/). 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](https://www.ampproject.org/) will be disabled accordingly, regardless of your other settings. See [Issue #695](wpsharks/comet-cache#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 `[]`.
- Loading branch information
jaswsinc
committed
Dec 7, 2016
1 parent
424dc37
commit 3543679
Showing
7 changed files
with
444 additions
and
422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.